This commit is contained in:
proudparrot2
2024-04-22 09:39:55 -05:00
commit be1599a8cb
50 changed files with 4276 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
'use client'
import { Button } from '@/components/ui/button'
import { Images, Link, Palette } from 'lucide-react'
import NextLink from 'next/link'
import { usePathname } from 'next/navigation'
export default function SettingsLayout({ children }: Readonly<{ children: React.ReactNode }>) {
const pathname = usePathname()
return (
<div className="flex">
<div className="flex w-1/4 flex-col gap-2 p-4 pl-8 pt-8">
<NextLink href="/settings/apperance/">
<Button variant={pathname?.includes('/settings/appearance') ? 'secondary' : 'ghost'} className="w-full items-center justify-start gap-2">
<Palette className="h-5 w-5" /> Appearance
</Button>
</NextLink>
<Button variant={pathname?.includes('/settings/search') ? 'secondary' : 'ghost'} className="w-full items-center justify-start gap-2">
<Images className="h-5 w-5" /> Images
</Button>
<Button variant={pathname?.includes('/settings/account') ? 'secondary' : 'ghost'} className="w-full items-center justify-start gap-2">
<Link className="h-5 w-5" /> Social Links
</Button>
</div>
<div className="w-3/4 px-12 py-8">{children}</div>
</div>
)
}