feat: wip email templates

This commit is contained in:
Ahmed Bouhuolia
2024-11-19 11:56:52 +02:00
parent 7e65f3f642
commit 2c54092591
12 changed files with 626 additions and 124 deletions

View File

@@ -0,0 +1,40 @@
export interface CreditNoteEmailProps {
preview?: string;
companyName?: string;
companyLogoUri: string;
primaryColor?: string;
total: string;
totalLabel?: string;
// # Items
items: Array<{ label: string; quantity: string; rate: string }>;
viewEstimateButtonLabel?: string;
viewEstimateButtonUrl?: string;
}
export const CreditNoteEmailTemplate: React.FC<
Readonly<CreditNoteEmailProps>
> = ({
preview,
// # Company
companyName,
companyLogoUri,
// # Colors
primaryColor = 'rgb(0, 82, 204)',
// # invoice total
total,
totalLabel = 'Total',
// # View invoice button
viewEstimateButtonLabel = 'View Estimate',
viewEstimateButtonUrl,
}) => {
return <h1>asdasd</h1>;
};