diff --git a/app/(app)/_layout/Sidebar.tsx b/app/(app)/_layout/Sidebar.tsx
index 31f99b8..2633a2d 100644
--- a/app/(app)/_layout/Sidebar.tsx
+++ b/app/(app)/_layout/Sidebar.tsx
@@ -1,3 +1,5 @@
+"use client";
+
import Link from "next/link";
import {
RiHome6Fill,
@@ -17,14 +19,36 @@ import {
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
+import ZapPicker from "@/components/Modals/ZapPicker";
+import { useModal } from "@/app/_providers/modal/provider";
+import { IconType } from "react-icons";
+
+type NavigationLink = {
+ type: "link";
+ href: string;
+};
+type NavigationButton = {
+ type: "button";
+ onClick: () => void;
+};
+type NavigationElement = {
+ name: string;
+ label: string;
+ icon: IconType;
+ current: boolean;
+ active: boolean;
+} & (NavigationLink | NavigationButton);
export default function Sidebar() {
- const navigation = [
+ const modal = useModal();
+
+ const navigation: NavigationElement[] = [
{
href: "",
name: "home",
label: "Home",
icon: RiHome6Fill,
+ type: "link",
current: true,
active: true,
},
@@ -33,6 +57,7 @@ export default function Sidebar() {
name: "explore",
label: "Explore",
icon: RiCompassLine,
+ type: "link",
current: false,
active: false,
},
@@ -41,14 +66,16 @@ export default function Sidebar() {
name: "messages",
label: "Messages",
icon: RiQuestionAnswerLine,
+ type: "link",
current: false,
active: false,
},
{
- href: "",
+ onClick: () => modal?.show(
Coming Soon
+Coming Soon
-Coming Soon
+