Files
AFFiNE/packages/backend/server/src/mails/workspaces/invitation.tsx
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

42 lines
838 B
TypeScript

import { TEST_USER, TEST_WORKSPACE } from '../common';
import {
Button,
Content,
P,
Template,
Title,
User,
type UserProps,
Workspace,
type WorkspaceProps,
} from '../components';
export type InvitationProps = {
user: UserProps;
workspace: WorkspaceProps;
url: string;
};
export default function Invitation(props: InvitationProps) {
const { user, workspace, url } = props;
return (
<Template>
<Title>You are invited!</Title>
<Content>
<P>
<User {...user} /> invited you to join <Workspace {...workspace} />
</P>
<P>Click button to join this workspace</P>
<Button href={url}>Accept & Join</Button>
</Content>
</Template>
);
}
Invitation.PreviewProps = {
user: TEST_USER,
workspace: TEST_WORKSPACE,
url: 'https://app.affine.pro',
};