2023-02-22 06:50:24 -05:00
|
|
|
import { Trans, useTranslation } from 'react-i18next'
|
2023-06-08 09:19:32 -04:00
|
|
|
import { RowLink } from './row-link'
|
2024-06-18 06:01:37 -04:00
|
|
|
import { Publisher } from '../../../../../../types/subscription/dashboard/publisher'
|
2023-02-22 06:50:24 -05:00
|
|
|
|
|
|
|
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 || '',
|
|
|
|
}}
|
2023-10-19 04:27:45 -04:00
|
|
|
shouldUnescape
|
|
|
|
tOptions={{ interpolation: { escapeValue: true } }}
|
2023-02-22 06:50:24 -05:00
|
|
|
/>
|
|
|
|
</p>
|
2023-06-08 09:19:32 -04:00
|
|
|
<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"
|
|
|
|
/>
|
2023-02-22 06:50:24 -05:00
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|