import * as React from "react" import { Plus } from "lucide-react" import { Calendars } from '@/app/calendars' import { NavUser } from '@/app/nav-user' import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarRail, SidebarSeparator, } from '@/components/ui/sidebar' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { Label } from "@/components/ui/label" import { Slider } from "@/components/ui/slider" import { useMapLocation, type LocationKey } from "@/hooks/use-map-location" import { ThemeToggle } from "@/components/theme-toggle" import { useMapZoom } from "@/hooks/use-map-zoom" // This is sample data. const data = { user: { name: "shadcn", email: "m@example.com", avatar: "/avatars/shadcn.jpg", }, calendars: [ { name: "My Calendars", items: ["Personal", "Work", "Family"], }, { name: "Favorites", items: ["Holidays", "Birthdays"], }, { name: "Other", items: ["Travel", "Reminders", "Deadlines"], }, ], } export function AppSidebar({ ...props }: React.ComponentProps) { const { currentLocation, flyToLocation, isMapReady } = useMapLocation(); const { zoomToLocation, zoomIn, zoomOut, mapState } = useMapZoom(); return ( {/* */}
zoomToLocation(value[0])} /> {mapState.zoomLevel.toFixed(1)}
New Calendar
) }