import { Trans } from '@lingui/react/macro'; import type { TeamGroup } from '@prisma/client'; import { Alert, AlertDescription, AlertTitle } from '@documenso/ui/primitives/alert'; import { TeamMemberInheritDisableDialog } from '~/components/dialogs/team-inherit-member-disable-dialog'; import { TeamMemberInheritEnableDialog } from '~/components/dialogs/team-inherit-member-enable-dialog'; type TeamInheritMemberAlertProps = { memberAccessTeamGroup: TeamGroup | null; }; export const TeamInheritMemberAlert = ({ memberAccessTeamGroup }: TeamInheritMemberAlertProps) => { return (
Inherit organisation members {memberAccessTeamGroup ? ( Currently all organisation members can access this team ) : ( You can enable access to allow all organisation members to access this team by default. )}
{memberAccessTeamGroup ? ( ) : ( )}
); };