"use client" import { Checkbox } from "@/app/_components/ui/checkbox" import { Label } from "@/app/_components/ui/label" import { Overlay } from "../../overlay" import { ControlPosition } from "mapbox-gl" interface TimeControlsProps { onTimeChange: (time: string) => void activeTime: string position?: ControlPosition } export default function TimeControls({ onTimeChange, activeTime, position = "bottom-left" }: TimeControlsProps) { const times = [ { id: "today", label: "Hari ini" }, { id: "yesterday", label: "Kemarin" }, { id: "week", label: "Minggu" }, { id: "month", label: "Bulan" }, ] return (
Waktu
{times.map((time) => (
onTimeChange(time.id)} />
))}
) }