2023-12-02 09:38:24 +11:00
|
|
|
import { Column, Img, Row, Section } from '../components';
|
2023-09-26 15:39:34 +10:00
|
|
|
|
|
|
|
export interface TemplateDocumentImageProps {
|
|
|
|
assetBaseUrl: string;
|
|
|
|
className?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const TemplateDocumentImage = ({ assetBaseUrl, className }: TemplateDocumentImageProps) => {
|
|
|
|
const getAssetUrl = (path: string) => {
|
|
|
|
return new URL(path, assetBaseUrl).toString();
|
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Section className={className}>
|
|
|
|
<Row className="table-fixed">
|
|
|
|
<Column />
|
|
|
|
|
|
|
|
<Column>
|
2025-03-24 15:55:08 +01:00
|
|
|
<Img className="h-42 mx-auto" src={getAssetUrl('/static/document.png')} alt="BLS sign" />
|
2023-09-26 15:39:34 +10:00
|
|
|
</Column>
|
|
|
|
|
|
|
|
<Column />
|
|
|
|
</Row>
|
|
|
|
</Section>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TemplateDocumentImage;
|