mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 17:03:38 +00:00
16 lines
314 B
TypeScript
16 lines
314 B
TypeScript
import { auth } from '@clerk/nextjs/server';
|
|
|
|
import { Navbar } from './_components/Navbar';
|
|
|
|
const DashbordLayout = ({ children }: { children: React.ReactNode }) => {
|
|
auth().protect();
|
|
|
|
return (
|
|
<div className='h-full'>
|
|
<Navbar />
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default DashbordLayout;
|