+
+
+
+
+
+ )
+}
\ No newline at end of file
diff --git a/components/mobile-sidebar.tsx b/components/mobile-sidebar.tsx
index 88bee20..8e162f2 100644
--- a/components/mobile-sidebar.tsx
+++ b/components/mobile-sidebar.tsx
@@ -7,7 +7,11 @@ import { Button } from "@/components/ui/button";
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
import { Sidebar } from "@/components/sidebar";
-export const MobileSidebar = () => {
+interface MobileSidebarProps {
+ apiLimitCount: number
+}
+
+export const MobileSidebar: React.FC
+
+
+ + {apiLimitCount} / {MAX_FREE_COUNTS} Free Generations +
+ +
-
+
diff --git a/components/sidebar.tsx b/components/sidebar.tsx
index 7c03ae0..4466310 100644
--- a/components/sidebar.tsx
+++ b/components/sidebar.tsx
@@ -8,6 +8,8 @@ import { usePathname } from "next/navigation";
import { cn } from "@/lib/utils";
+import { FreeCounter } from "./free-counter";
+
const montserrat = Montserrat({ weight: '600', subsets: ['latin'] });
const routes = [
@@ -54,7 +56,11 @@ const routes = [
},
];
-export const Sidebar = () => {
+interface SidebarProps {
+ apiLimitCount: number;
+}
+
+export const Sidebar: React.FC = ({ apiLimitCount = 0 }) => {
const pathname = usePathname();
return (
@@ -86,6 +92,11 @@ export const Sidebar = () => {
))}