Files
AFFiNE-Mirror/packages/backend/server/src/mails/teams/workspace-upgraded.tsx
T
darkskygit 83ed215f4a feat(server): new email template (#9528)
use `yarn af server dev:mail` to preview all mail template
fix CLOUD-93
2025-01-22 02:55:25 +00:00

58 lines
1.4 KiB
TypeScript

import { TEST_WORKSPACE } from '../common';
import {
Button,
Content,
P,
Template,
Title,
Workspace,
type WorkspaceProps,
} from '../components';
export type TeamWorkspaceUpgradedProps = {
workspace: WorkspaceProps;
isOwner: boolean;
url: string;
};
export default function TeamWorkspaceUpgraded(
props: TeamWorkspaceUpgradedProps
) {
const { workspace, isOwner, url } = props;
return (
<Template>
<Title>Welcome to the team workspace!</Title>
<Content>
<P>
{isOwner ? (
<>
<Workspace {...workspace} /> has been upgraded to team workspace
with the following benefits:
</>
) : (
<>
Great news! <Workspace {...workspace} /> has been upgraded to team
workspace by the workspace owner.
<br />
You now have access to the following enhanced features:
</>
)}
<br /> 100 GB initial storage + 20 GB per seat
<br /> 500 MB of maximum file size
<br /> Unlimited team members (10+ seats)
<br /> Multiple admin roles
<br /> Priority customer support
</P>
<Button href={url}>Open Workspace</Button>
</Content>
</Template>
);
}
TeamWorkspaceUpgraded.PreviewProps = {
workspace: TEST_WORKSPACE,
isOwner: true,
url: 'https://app.affine.pro',
};