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'
|
2022-04-22 09:49:26 -04:00
|
|
|
import Actions from './actions'
|
2022-04-08 07:00:46 -04:00
|
|
|
|
|
|
|
type EmailsRowProps = {
|
|
|
|
userEmailData: UserEmailData
|
|
|
|
}
|
|
|
|
|
|
|
|
function EmailsRow({ userEmailData }: EmailsRowProps) {
|
|
|
|
return (
|
|
|
|
<Row>
|
2022-04-22 09:49:26 -04:00
|
|
|
<Col md={4}>
|
2022-04-08 07:00:46 -04:00
|
|
|
<EmailCell>
|
|
|
|
<Email userEmailData={userEmailData} />
|
|
|
|
</EmailCell>
|
|
|
|
</Col>
|
2022-04-22 09:49:26 -04:00
|
|
|
<Col sm={4}>
|
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>
|
2022-04-22 09:49:26 -04:00
|
|
|
<Col md={4}>
|
|
|
|
<EmailCell className="text-md-right">
|
|
|
|
<Actions userEmailData={userEmailData} />
|
|
|
|
</EmailCell>
|
2022-04-08 07:00:46 -04:00
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default EmailsRow
|