'use client' import { Box, rem, Select } from '@mantine/core'; import { IconChartLine, IconLeaf, IconRecycle, IconTent, IconTrophy, } from '@tabler/icons-react'; const iconMap = { ekowisata: { label: 'Ekowisata', icon: IconLeaf }, kompetisi: { label: 'Kompetisi', icon: IconTrophy }, wisata: { label: 'Wisata', icon: IconTent }, ekonomi: { label: 'Ekonomi', icon: IconChartLine }, sampah: { label: 'Sampah', icon: IconRecycle }, }; type IconKey = keyof typeof iconMap; const iconList = Object.entries(iconMap).map(([value, data]) => ({ value, label: data.label, })); export default function SelectIconProgramEdit({ onChange, value, }: { onChange: (value: IconKey) => void; value: IconKey; }) { const IconComponent = iconMap[value]?.icon || null; return (