import Icon from '@hackclub/icons' import { useState } from 'react' import { Box, Card, Flex, Text } from 'theme-ui' export default function Bio({ popup = true, spanTwo = false, ...props }) { const { name, teamRole, pronouns, text, subrole, email, href, video, img } = props const [expand, setExpand] = useState(false) return ( <> { if (text && popup) { setExpand(true) } }} > {img && ( )} {name} {teamRole} {subrole && ( <>
{subrole} )} {pronouns && ( ({pronouns}) )}
{!popup && email && (email.includes('@') ? ( {email}
) : ( {email}@hackclub.com
))} {!popup && ( <> {text} {video && (