import * as React from 'react' import * as cn from 'classnames' export interface ToggleProps { choices: string[] onChange: (choice: string, i: number) => void activeChoice: string } /* tslint:disable */ const Toggle = ({ choices, onChange, activeChoice }: ToggleProps) => { return (
{choices.map((choice, i) => (
onChange(choice, i)} > {choice}
))}
) } export default Toggle