import { useState } from 'react'; import { Switch, Grid } from '@material-ui/core'; import Panel from './Panel'; import { HeaderText, BodyText } from './Text'; const Anvils = ({ list }: { list: AnvilList | undefined }): JSX.Element => { const [checked, setChecked] = useState(true); let anvils: AnvilListItem[] = []; if (list) anvils = list.anvils; return ( 0 ? anvils[0].anvil_name : 'Anvil 1'} /> setChecked(!checked)} /> ); }; export default Anvils;