import type { ComponentType } from 'react'; import { cn } from '../../lib/cn'; export interface AnalysisScopeOption { id: T; label: string; } export default function AnalysisScopeSwitch({ ariaLabel, value, options, onChange, icon: Icon, className, }: { ariaLabel: string; value: T; options: readonly AnalysisScopeOption[]; onChange: (value: T) => void; icon?: ComponentType<{ size?: number; className?: string }>; className?: string; }) { return (
{options.map(option => ( ))}
); }