"use client" import { Card } from "@/app/_components/ui/card" import { CRIME_COLORS, CRIME_RATES } from "@/app/_utils/const/crime" type MapLegendProps = { title?: string position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" } export default function MapLegend({ title = "Crime Rate Legend", position = "bottom-right" }: MapLegendProps) { // Define position classes const positionClasses = { "top-left": "top-4 left-4", "top-right": "top-4 right-4", "bottom-left": "bottom-4 left-4", "bottom-right": "bottom-4 right-4", } return (