"use client" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select" import { STATISTICS_DIMS } from "@/lib/statistics-dims" import type { StatisticsPivotDim } from "@mmapp/contracts/statistics" import type { StatisticsSliceKind } from "@/components/data-grids/statistics-breakdown-data-grid" export function DimensionSelect({ value, onChange, label, }: { value: StatisticsSliceKind onChange: (value: StatisticsSliceKind) => void label?: string }) { const current = STATISTICS_DIMS.find((d) => d.id === value) return ( ) } export function PivotDimSelect({ value, onChange, exclude, label, }: { value: StatisticsPivotDim onChange: (value: StatisticsPivotDim) => void exclude?: StatisticsPivotDim label: string }) { const options = STATISTICS_DIMS.filter((d) => d.pivot !== exclude) const current = STATISTICS_DIMS.find((d) => d.pivot === value) return ( ) }