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