2024-06-25 02:08:24 -04:00
|
|
|
import { useProjectContext } from '@/shared/context/project-context'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
import Icon from '@/shared/components/icon'
|
2024-10-09 08:13:50 -04:00
|
|
|
import OLRow from '@/features/ui/components/ol/ol-row'
|
|
|
|
import OLCol from '@/features/ui/components/ol/ol-col'
|
|
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
|
|
|
import MaterialIcon from '@/shared/components/material-icon'
|
2024-06-25 02:08:24 -04:00
|
|
|
|
|
|
|
export default function OwnerInfo() {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const { owner } = useProjectContext()
|
|
|
|
|
|
|
|
return (
|
2024-10-09 08:13:50 -04:00
|
|
|
<OLRow className="project-member">
|
|
|
|
<OLCol xs={8}>
|
2024-06-25 02:08:24 -04:00
|
|
|
<div className="project-member-email-icon">
|
2024-10-09 08:13:50 -04:00
|
|
|
<BootstrapVersionSwitcher
|
|
|
|
bs3={<Icon type="user" fw />}
|
|
|
|
bs5={<MaterialIcon type="person" />}
|
|
|
|
/>
|
2024-06-25 02:08:24 -04:00
|
|
|
<div className="email-warning">{owner?.email}</div>
|
|
|
|
</div>
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLCol>
|
|
|
|
<OLCol xs={4} className="text-end">
|
2024-06-25 02:08:24 -04:00
|
|
|
{t('owner')}
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLCol>
|
|
|
|
</OLRow>
|
2024-06-25 02:08:24 -04:00
|
|
|
)
|
|
|
|
}
|