diff --git a/app/src/components/TwoColumnView.tsx b/app/src/components/TwoColumnView.tsx new file mode 100644 index 00000000..1ef3819b --- /dev/null +++ b/app/src/components/TwoColumnView.tsx @@ -0,0 +1,54 @@ +import { Grid, Paper, Title } from '@mantine/core'; +import { colors, spacing, typography } from '@/designTokens'; + +interface TwoColumnViewProps { + title: string; + leftColumn: React.ReactNode; + rightColumn: React.ReactNode; + backgroundColor?: 'primary' | 'secondary'; +} + +const TwoColumnView = ({ + title, + leftColumn, + rightColumn, + backgroundColor, +}: TwoColumnViewProps) => { + const getBackgroundColor = () => { + if(backgroundColor === 'primary') { + return colors.primary[100]; + } + if(backgroundColor === 'secondary') { + return colors.secondary[100]; + } + return colors.white; + }; + + return ( + + + {title} + + + {leftColumn} + {rightColumn} + + + ); +}; + +export default TwoColumnView; \ No newline at end of file