added admin layout
This commit is contained in:
17
app/[locale]/(protected)/layout.tsx
Normal file
17
app/[locale]/(protected)/layout.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import Navbar from '@/app/[locale]/(protected)/_components/navbar'
|
||||
|
||||
interface ProtectedLayoutProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
const ProtectedLayout = ({ children }: ProtectedLayoutProps) => {
|
||||
return (
|
||||
<main
|
||||
className="w-full h-full flex flex-col justify-center items-center gap-y-10 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-sky-400 to-blue-800">
|
||||
<Navbar/>
|
||||
{children}
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
export default ProtectedLayout
|
||||
Reference in New Issue
Block a user