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