// ui import { CustomSelect } from "components/ui"; // types import { IAnalyticsParams, TXAxisValues, TYAxisValues } from "types"; // constants import { ANALYTICS_X_AXIS_VALUES, ANALYTICS_Y_AXIS_VALUES } from "constants/analytics"; type Props = { value: TXAxisValues; onChange: (val: string) => void; }; export const SelectXAxis: React.FC = ({ value, onChange }) => ( {ANALYTICS_X_AXIS_VALUES.find((v) => v.value === value)?.label}} onChange={onChange} width="w-full" maxHeight="lg" > {ANALYTICS_X_AXIS_VALUES.map((item) => ( {item.label} ))} );