diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index abb2077..cf907bb 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -4,6 +4,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { useEffect, useState } from "react"; import { Disclosure, Transition } from "@headlessui/react"; +import SidebarHighlightLink from "@/components/SidebarHighlightLink"; export default function Sidebar({ className }: { className?: string }) { const [tagDisclosure, setTagDisclosure] = useState(() => { @@ -47,54 +48,27 @@ export default function Sidebar({ className }: { className?: string }) { className || "" }`} > -
- -
- -

Dashboard

-
- - - -
- -

All Links

-
- - - -
- -

All Collections

-
- - - -
- -

Pinned Links

-
- +
+ + + +
diff --git a/components/SidebarHighlightLink.tsx b/components/SidebarHighlightLink.tsx new file mode 100644 index 0000000..339a0d0 --- /dev/null +++ b/components/SidebarHighlightLink.tsx @@ -0,0 +1,26 @@ +import Link from "next/link"; + +export default function SidebarHighlightLink({ title, href, icon, active }: { + title: string, + href: string, + icon: string, + active?: boolean +}) { + + return ( + +
+
+ +
+
+

{title}

+
+
+ + ) +} \ No newline at end of file