tasko/app/(platform)/(dashboard)/layout.tsx

17 lines
314 B
TypeScript
Raw Normal View History

import { auth } from '@clerk/nextjs/server';
2024-02-16 01:49:19 +00:00
import { Navbar } from './_components/Navbar';
2024-02-15 02:30:10 +00:00
const DashbordLayout = ({ children }: { children: React.ReactNode }) => {
auth().protect();
2024-02-15 02:30:10 +00:00
return (
2024-02-16 01:49:19 +00:00
<div className='h-full'>
2024-02-15 02:30:10 +00:00
<Navbar />
{children}
</div>
);
};
export default DashbordLayout;