import "./index.css"; interface Name { name: string; } interface nameListProps { nameList: Name[]; activeName: string; setActiveName: (name: string) => void; } function SwitchButton(props: nameListProps) { return (