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