mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 02:21:51 +08:00
83ed215f4a
use `yarn af server dev:mail` to preview all mail template fix CLOUD-93
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
import { TEST_WORKSPACE } from '../common';
|
|
import {
|
|
Bold,
|
|
Button,
|
|
Content,
|
|
P,
|
|
Template,
|
|
Text,
|
|
Title,
|
|
Workspace,
|
|
type WorkspaceProps,
|
|
} from '../components';
|
|
|
|
export interface TeamDeleteInOneMonthProps {
|
|
workspace: WorkspaceProps;
|
|
expirationDate: Date;
|
|
deletionDate: Date;
|
|
url: string;
|
|
}
|
|
|
|
export default function TeamDeleteInOneMonth(props: TeamDeleteInOneMonthProps) {
|
|
const { workspace, expirationDate, deletionDate, url } = props;
|
|
|
|
return (
|
|
<Template>
|
|
<Title>Take action to prevent data loss</Title>
|
|
<Content>
|
|
<P>
|
|
Your <Workspace {...workspace} /> team workspace expired on{' '}
|
|
<Bold>{expirationDate.toLocaleDateString()}</Bold>. All workspace data
|
|
will be permanently deleted on{' '}
|
|
<Bold>{deletionDate.toLocaleDateString()}</Bold> (180 days after
|
|
expiration). To prevent data loss, please either:
|
|
<li>
|
|
<Text>Renew your subscription to restore team features</Text>
|
|
</li>
|
|
<li>
|
|
<Text>
|
|
Export your workspace data from Workspace Settings > Export
|
|
Workspace
|
|
</Text>
|
|
</li>
|
|
</P>
|
|
<Button href={url}>Go to Billing</Button>
|
|
</Content>
|
|
</Template>
|
|
);
|
|
}
|
|
|
|
TeamDeleteInOneMonth.PreviewProps = {
|
|
workspace: TEST_WORKSPACE,
|
|
expirationDate: new Date('2025-01-01T00:00:00Z'),
|
|
deletionDate: new Date('2025-01-31T00:00:00Z'),
|
|
url: 'https://app.affine.pro',
|
|
};
|