Spaces:
Build error
Build error
Upload components/layout/sidebar.jsx with huggingface_hub
Browse files
components/layout/sidebar.jsx
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Link from "next/link"
|
| 2 |
+
import { Button } from "@/components/ui/button"
|
| 3 |
+
import { cn } from "@/lib/utils"
|
| 4 |
+
|
| 5 |
+
export function Sidebar({ className }) {
|
| 6 |
+
return (
|
| 7 |
+
<div className={cn("hidden border-r bg-muted/40 md:block", className)}>
|
| 8 |
+
<div className="flex h-full max-h-screen flex-col gap-2">
|
| 9 |
+
<div className="flex h-14 items-center border-b px-4 lg:h-[60px] lg:px-6">
|
| 10 |
+
<Link href="/" className="flex items-center gap-2 font-semibold">
|
| 11 |
+
<svg
|
| 12 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 13 |
+
width="24"
|
| 14 |
+
height="24"
|
| 15 |
+
viewBox="0 0 24 24"
|
| 16 |
+
fill="none"
|
| 17 |
+
stroke="currentColor"
|
| 18 |
+
strokeWidth="2"
|
| 19 |
+
strokeLinecap="round"
|
| 20 |
+
strokeLinejoin="round"
|
| 21 |
+
className="h-6 w-6"
|
| 22 |
+
>
|
| 23 |
+
<path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z" />
|
| 24 |
+
<path d="M12 6v6l4 2" />
|
| 25 |
+
</svg>
|
| 26 |
+
<span className="">MangaVerse</span>
|
| 27 |
+
</Link>
|
| 28 |
+
</div>
|
| 29 |
+
<div className="flex-1">
|
| 30 |
+
<nav className="grid items-start px-2 text-sm font-medium lg:px-4">
|
| 31 |
+
<Link
|
| 32 |
+
href="/dashboard"
|
| 33 |
+
className="flex items-center gap-3 rounded-lg px-3 py-2 text-muted-foreground transition-all hover:text-primary"
|
| 34 |
+
>
|
| 35 |
+
<svg
|
| 36 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 37 |
+
width="24"
|
| 38 |
+
height="24"
|
| 39 |
+
viewBox="0 0 24 24"
|
| 40 |
+
fill="none"
|
| 41 |
+
stroke="currentColor"
|
| 42 |
+
strokeWidth="2"
|
| 43 |
+
strokeLinecap="round"
|
| 44 |
+
strokeLinejoin="round"
|
| 45 |
+
className="h-4 w-4"
|
| 46 |
+
>
|
| 47 |
+
<path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z" />
|
| 48 |
+
<path d="M12 6v6l4 2" />
|
| 49 |
+
</svg>
|
| 50 |
+
Dashboard
|
| 51 |
+
</Link>
|
| 52 |
+
<Link
|
| 53 |
+
href="/review"
|
| 54 |
+
className="flex items-center gap-3 rounded-lg px-3 py-2 text-muted-foreground transition-all hover:text-primary"
|
| 55 |
+
>
|
| 56 |
+
<svg
|
| 57 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 58 |
+
width="24"
|
| 59 |
+
height="24"
|
| 60 |
+
viewBox="0 0 24 24"
|
| 61 |
+
fill="none"
|
| 62 |
+
stroke="currentColor"
|
| 63 |
+
strokeWidth="2"
|
| 64 |
+
strokeLinecap="round"
|
| 65 |
+
strokeLinejoin="round"
|
| 66 |
+
className="h-4 w-4"
|
| 67 |
+
>
|
| 68 |
+
<path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z" />
|
| 69 |
+
<path d="M12 6v6l4 2" />
|
| 70 |
+
</svg>
|
| 71 |
+
Review Queue
|
| 72 |
+
</Link>
|
| 73 |
+
<Link
|
| 74 |
+
href="/settings"
|
| 75 |
+
className="flex items-center gap-3 rounded-lg px-3 py-2 text-muted-foreground transition-all hover:text-primary"
|
| 76 |
+
>
|
| 77 |
+
<svg
|
| 78 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 79 |
+
width="24"
|
| 80 |
+
height="24"
|
| 81 |
+
viewBox="0 0 24 24"
|
| 82 |
+
fill="none"
|
| 83 |
+
stroke="currentColor"
|
| 84 |
+
strokeWidth="2"
|
| 85 |
+
strokeLinecap="round"
|
| 86 |
+
strokeLinejoin="round"
|
| 87 |
+
className="h-4 w-4"
|
| 88 |
+
>
|
| 89 |
+
<path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z" />
|
| 90 |
+
<path d="M12 6v6l4 2" />
|
| 91 |
+
</svg>
|
| 92 |
+
Settings
|
| 93 |
+
</Link>
|
| 94 |
+
</nav>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
)
|
| 99 |
+
}
|