add basic mobile responsive layout

This commit is contained in:
jeffvli
2025-11-19 19:23:44 -08:00
parent 485fe8085c
commit c763824803
26 changed files with 1930 additions and 40 deletions
@@ -0,0 +1,17 @@
import { useIsMobile } from '/@/renderer/hooks/use-is-mobile';
import { DefaultLayout } from '/@/renderer/layouts/default-layout';
import { MobileLayout } from '/@/renderer/layouts/mobile-layout/mobile-layout';
interface ResponsiveLayoutProps {
shell?: boolean;
}
export const ResponsiveLayout = ({ shell }: ResponsiveLayoutProps) => {
const isMobile = useIsMobile();
if (isMobile) {
return <MobileLayout shell={shell} />;
}
return <DefaultLayout shell={shell} />;
};