Files
stackrender/src/features/database/index.tsx
T
2026-01-01 15:49:48 +01:00

35 lines
701 B
TypeScript

import React, { Suspense } from "react";
import { Loading } from "@/components/layout/loading-modal";
import { useIsMobile } from "@/hooks/use-mobile";
const DatabaseDesktopLayout = React.lazy(
() => import('./desktop-layout')
);
const DatabaseMobileLayout = React.lazy(
() => import('./mobile-layout')
);
export const DatabaseLayout: React.FC = () => {
const isMobile = useIsMobile() ;
return (
<Suspense
fallback={
<Loading/>
}
>
{
isMobile ? <DatabaseMobileLayout/> : <DatabaseDesktopLayout/>
}
</Suspense>
);
};
export default DatabaseLayout;