2022-04-08 07:00:46 -04:00
|
|
|
import { UserEmailData } from '../../../../../../types/user-email'
|
|
|
|
import { Row, Col } from 'react-bootstrap'
|
|
|
|
import Email from './email'
|
2022-04-14 05:19:18 -04:00
|
|
|
import InstitutionAndRole from './institution-and-role'
|
2022-04-08 07:00:46 -04:00
|
|
|
import EmailCell from './cell'
|
|
|
|
|
|
|
|
type EmailsRowProps = {
|
|
|
|
userEmailData: UserEmailData
|
|
|
|
}
|
|
|
|
|
|
|
|
function EmailsRow({ userEmailData }: EmailsRowProps) {
|
|
|
|
return (
|
|
|
|
<Row>
|
|
|
|
<Col sm={5}>
|
|
|
|
<EmailCell>
|
|
|
|
<Email userEmailData={userEmailData} />
|
|
|
|
</EmailCell>
|
|
|
|
</Col>
|
|
|
|
<Col sm={5}>
|
2022-04-14 05:19:18 -04:00
|
|
|
{userEmailData.affiliation?.institution && (
|
|
|
|
<EmailCell>
|
|
|
|
<InstitutionAndRole userEmailData={userEmailData} />
|
|
|
|
</EmailCell>
|
|
|
|
)}
|
2022-04-08 07:00:46 -04:00
|
|
|
</Col>
|
|
|
|
<Col sm={2}>
|
|
|
|
<EmailCell>todo</EmailCell>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default EmailsRow
|