mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-15 02:20:58 -05:00
29 lines
683 B
TypeScript
29 lines
683 B
TypeScript
|
import { useTranslation } from 'react-i18next'
|
||
|
import type { TeamInvite } from '../../../../../../types/team-invite'
|
||
|
|
||
|
type GroupInvitesItemFooterProps = {
|
||
|
teamInvite: TeamInvite
|
||
|
}
|
||
|
|
||
|
export default function GroupInvitesItemFooter({
|
||
|
teamInvite,
|
||
|
}: GroupInvitesItemFooterProps) {
|
||
|
const { t } = useTranslation()
|
||
|
|
||
|
return (
|
||
|
<div>
|
||
|
<p data-cy="group-invites-item-footer-text">
|
||
|
{t('join_team_explanation')}
|
||
|
</p>
|
||
|
<div data-cy="group-invites-item-footer-link">
|
||
|
<a
|
||
|
className="btn btn-primary"
|
||
|
href={`/subscription/invites/${teamInvite.token}`}
|
||
|
>
|
||
|
{t('view_invitation')}
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|