mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: wip email templates
This commit is contained in:
45
shared/email-components/src/lib/ReceiptPaymentEmail.tsx
Normal file
45
shared/email-components/src/lib/ReceiptPaymentEmail.tsx
Normal file
@@ -0,0 +1,45 @@
|
||||
export interface ReceiptEmailTemplateProps {
|
||||
preview?: string;
|
||||
|
||||
// # Company
|
||||
companyName?: string;
|
||||
companyLogoUri: string;
|
||||
|
||||
// # Colors
|
||||
primaryColor?: string;
|
||||
|
||||
// # Invoice total
|
||||
total: string;
|
||||
totalLabel?: string;
|
||||
|
||||
// # Items
|
||||
items: Array<{ label: string; quantity: string; rate: string }>;
|
||||
|
||||
viewReceiptButtonLabel?: string;
|
||||
viewReceiptButtonUrl?: string;
|
||||
}
|
||||
|
||||
export const ReceiptEmailTemplate: React.FC<
|
||||
Readonly<ReceiptEmailTemplateProps>
|
||||
> = ({
|
||||
preview,
|
||||
|
||||
// # Company
|
||||
companyName,
|
||||
companyLogoUri,
|
||||
|
||||
// # Colors
|
||||
primaryColor = 'rgb(0, 82, 204)',
|
||||
|
||||
// # Invoice total
|
||||
total,
|
||||
totalLabel = 'Total',
|
||||
|
||||
// # View invoice button
|
||||
viewReceiptButtonLabel = 'View Estimate',
|
||||
viewReceiptButtonUrl,
|
||||
}) => {
|
||||
return (
|
||||
<h1>asdasd</h1>
|
||||
)
|
||||
};
|
||||
Reference in New Issue
Block a user