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

16 lines
324 B
TypeScript

import { auth } from '@clerk/nextjs/server';
import { Navbar } from './_components/Navbar';
const DashbordLayout = async ({ children }: { children: React.ReactNode }) => {
await auth.protect();
return (
<div className='h-full'>
<Navbar />
{children}
</div>
);
};
export default DashbordLayout;