mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
88d0254dde
[web] Full-row links styling for group subscription links in dash GitOrigin-RevId: f3b2dd67e9c14cf8fde1df41d74d380c06cc3d4c
38 lines
1,010 B
TypeScript
38 lines
1,010 B
TypeScript
import { Trans, useTranslation } from 'react-i18next'
|
|
import { Publisher } from './managed-publishers'
|
|
import { RowLink } from './row-link'
|
|
|
|
type ManagedPublisherProps = {
|
|
publisher: Publisher
|
|
}
|
|
|
|
export default function ManagedPublisher({ publisher }: ManagedPublisherProps) {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div>
|
|
<p>
|
|
<Trans
|
|
i18nKey="you_are_a_manager_of_publisher_x"
|
|
components={[<strong />]} // eslint-disable-line react/jsx-key
|
|
values={{
|
|
publisherName: publisher.name || '',
|
|
}}
|
|
/>
|
|
</p>
|
|
<RowLink
|
|
href={`/publishers/${publisher.slug}/hub`}
|
|
heading={t('view_hub')}
|
|
subtext={t('view_hub_subtext')}
|
|
icon="account_circle"
|
|
/>
|
|
<RowLink
|
|
href={`/manage/publishers/${publisher.slug}/managers`}
|
|
heading={t('manage_publisher_managers')}
|
|
subtext={t('manage_managers_subtext')}
|
|
icon="manage_accounts"
|
|
/>
|
|
<hr />
|
|
</div>
|
|
)
|
|
}
|