"use client"; import { Button } from "@/components/ui/button"; import { deviceCartAtom } from "@/lib/atoms"; import { authClient } from "@/lib/auth-client"; import { useAtomValue } from "jotai"; import { MonitorSmartphone } from "lucide-react"; import { usePathname, useRouter } from "next/navigation"; export function DeviceCartDrawer() { const pathname = usePathname(); const devices = useAtomValue(deviceCartAtom); const router = useRouter(); if (pathname === "/payment" || pathname === "/devices-to-pay") { return null; } if (devices.length === 0) return null return // <> // // // // // //
// // Selected Devices // Selected devices pay. // //
//
{JSON.stringify(isOpen, null, 2)}
// {devices.map((device) => ( // // ))} //
//
// setMonths(value)} // maxAllowed={12} // isDisabled={devices.length === 0} // /> // {message && ( // // {message} // // )} //
// // // // // // // //
//
//
// // ); }