'use client'; import { SegmentGroup } from '@chakra-ui/react'; import type { Items } from '#app/types/ui'; interface SegmentProps { defaultValue: string; value?: string; items: Items; onChange?: (value: string | null) => void; } export const Segment = ({ defaultValue, value, items, onChange, }: SegmentProps) => { return ( onChange?.(e.value)} > ); };