Ship 23 transactional templates, shared brand tokens/logo, preview UI, render API, CHANGELOG, and docs for Ecom/Admin/B2B consumers. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
import React from 'react';
|
|
import { Section } from '@react-email/components';
|
|
import { theme } from '../theme';
|
|
|
|
interface CardProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const Card = ({ children }: CardProps) => (
|
|
<Section style={card}>{children}</Section>
|
|
);
|
|
|
|
const card = {
|
|
backgroundColor: theme.colors.cream,
|
|
border: `1px solid ${theme.colors.line}`,
|
|
borderRadius: '10px',
|
|
padding: '16px 18px',
|
|
margin: '0 0 20px',
|
|
};
|