import { Button, Flex, HStack, Select } from '@metafam/ds'; import React from 'react'; type Props = { boxList: string[]; setNewBox: (name: string) => void }; export const PlayerAddBox: React.FC = ({ boxList, setNewBox }) => { const [show, setShow] = React.useState(false); const addBox = (e: React.ChangeEvent) => { setShow(false); setNewBox(e.target.value); }; return ( {!show && ( )} {show && ( <> )} ); };