import type { VisDef } from '../vis-packs/models'; import styles from './VisSelector.module.css'; interface Props { activeVis: T; choices: T[]; onChange: (index: number) => void; } function VisSelector(props: Props) { const { activeVis, choices, onChange } = props; return (
{choices.map((vis, index) => { const { name, Icon } = vis; return ( ); })}
); } export default VisSelector;