Chandima Prabhath
init
22b1735
raw
history blame
546 Bytes
import { ReactNode } from "react";
import { useIsMobile } from "@/hooks/use-mobile";
import { useLocation } from "react-router-dom";
interface MainLayoutProps {
children: ReactNode;
}
const MainLayout = ({ children }: MainLayoutProps) => {
const isMobile = useIsMobile();
const location = useLocation();
const isHomePage = location.pathname === "/";
return (
<div className="flex h-screen w-full">
<main className="flex-1 overflow-y-auto">
{children}
</main>
</div>
);
};
export default MainLayout;