mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
46 lines
1.6 KiB
TypeScript
46 lines
1.6 KiB
TypeScript
import { msg } from '@lingui/core/macro';
|
|
import { useLingui } from '@lingui/react';
|
|
|
|
import { Body, Container, Head, Html, Img, Preview, Section } from '../components';
|
|
import type { TemplateAdminUserCreatedProps } from '../template-components/template-admin-user-created';
|
|
import { TemplateAdminUserCreated } from '../template-components/template-admin-user-created';
|
|
import { TemplateFooter } from '../template-components/template-footer';
|
|
|
|
export const AdminUserCreatedTemplate = ({
|
|
resetPasswordLink,
|
|
assetBaseUrl = 'http://localhost:3002',
|
|
}: TemplateAdminUserCreatedProps) => {
|
|
const { _ } = useLingui();
|
|
|
|
const previewText = msg`Set your password for Documenso`;
|
|
|
|
const getAssetUrl = (path: string) => {
|
|
return new URL(path, assetBaseUrl).toString();
|
|
};
|
|
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<Preview>{_(previewText)}</Preview>
|
|
<Body className="mx-auto my-auto bg-white font-sans">
|
|
<Section>
|
|
<Container className="mx-auto mt-8 mb-2 max-w-xl rounded-lg border border-slate-200 border-solid p-4 backdrop-blur-sm">
|
|
<Section>
|
|
<Img src={getAssetUrl('/static/logo.png')} alt="Documenso Logo" className="mb-4 h-6" />
|
|
|
|
<TemplateAdminUserCreated resetPasswordLink={resetPasswordLink} assetBaseUrl={assetBaseUrl} />
|
|
</Section>
|
|
</Container>
|
|
<div className="mx-auto mt-12 max-w-xl" />
|
|
|
|
<Container className="mx-auto max-w-xl">
|
|
<TemplateFooter isDocument={false} />
|
|
</Container>
|
|
</Section>
|
|
</Body>
|
|
</Html>
|
|
);
|
|
};
|
|
|
|
export default AdminUserCreatedTemplate;
|