overleaf/services/web/frontend/js/features/share-project-modal/components/restricted-link-sharing/owner-info.jsx
roo hutton 64d9792fe3 Merge pull request #18861 from overleaf/rh-editor-limit-exceeded
[web]: Handle exceeded editor limit in share modal

GitOrigin-RevId: 23a15805ca98327ae4a7fc731bbca3982c90bad5
2024-06-25 08:04:46 +00:00

23 lines
651 B
JavaScript

import { useProjectContext } from '@/shared/context/project-context'
import { Col, Row } from 'react-bootstrap'
import { useTranslation } from 'react-i18next'
import Icon from '@/shared/components/icon'
export default function OwnerInfo() {
const { t } = useTranslation()
const { owner } = useProjectContext()
return (
<Row className="project-member">
<Col xs={9}>
<div className="project-member-email-icon">
<Icon type="user" fw />
<div className="email-warning">{owner?.email}</div>
</div>
</Col>
<Col xs={3} className="text-left">
{t('owner')}
</Col>
</Row>
)
}