diff --git a/components/ui/app-sidebar.tsx b/components/ui/app-sidebar.tsx
index 9fd8c55..cf539d0 100644
--- a/components/ui/app-sidebar.tsx
+++ b/components/ui/app-sidebar.tsx
@@ -1,4 +1,12 @@
-import { ChevronRight } from "lucide-react";
+import {
+ ChevronRight,
+ Coins,
+ CreditCard,
+ Handshake,
+ MonitorSpeaker,
+ Smartphone,
+ UsersRound,
+} from "lucide-react";
import {
Collapsible,
@@ -29,18 +37,18 @@ const data = {
{
title: "Devices",
url: "/devices",
+ icon: ,
},
- {
- title: "Parental Controls",
- url: "/parental-controls",
- },
+
{
title: "Payments",
url: "/payments",
+ icon: ,
},
{
title: "Agreements",
url: "/agreements",
+ icon: ,
},
],
},
@@ -52,14 +60,17 @@ const data = {
{
title: "Users",
url: "/users",
+ icon: ,
},
{
title: "User Devices",
url: "/user-devices",
+ icon: ,
},
{
title: "User Payments",
url: "/user-payments",
+ icon: ,
},
],
},
@@ -78,43 +89,6 @@ export function AppSidebar({
- {/* We create a collapsible SidebarGroup for each parent. */}
- {/* {data.navMain.map((item) => (
-
-
-
-
-
- {item.title}{" "}
-
-
-
-
-
-
- {item.items.map((item) => (
-
-
-
- {item.title}
-
-
-
- ))}
-
-
-
-
-
- ))} */}
{data.navMain
.filter(
(item) =>
@@ -146,7 +120,10 @@ export function AppSidebar({
- {item.title}
+ {item.icon}
+
+ {item.title}
+
diff --git a/components/ui/textarea.tsx b/components/ui/textarea.tsx
new file mode 100644
index 0000000..e56b0af
--- /dev/null
+++ b/components/ui/textarea.tsx
@@ -0,0 +1,22 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+const Textarea = React.forwardRef<
+ HTMLTextAreaElement,
+ React.ComponentProps<"textarea">
+>(({ className, ...props }, ref) => {
+ return (
+
+ )
+})
+Textarea.displayName = "Textarea"
+
+export { Textarea }
diff --git a/lib/auth-utils.ts b/lib/auth-utils.ts
new file mode 100644
index 0000000..bd16390
--- /dev/null
+++ b/lib/auth-utils.ts
@@ -0,0 +1,10 @@
+"use server";
+import { headers } from "next/headers";
+import { auth } from "./auth";
+
+export async function getCurrentUser() {
+ const session = await auth.api.getSession({
+ headers: await headers(),
+ });
+ return session?.user;
+}
diff --git a/package.json b/package.json
index 6ade3cb..5301060 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
- "dev": "next dev",
+ "dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint"