import React from 'react'; import { Surface } from './Surface'; export interface SegmentedControlOption { id: string; label: string; icon?: React.ReactNode; } export interface SegmentedControlProps { options: SegmentedControlOption[]; activeId: string; onChange: (id: string) => void; fullWidth?: boolean; } export const SegmentedControl = ({ options, activeId, onChange, fullWidth = false }: SegmentedControlProps) => { return ( {options.map((option) => { const isSelected = option.id === activeId; return ( ); })} ); };