import { Box, ContainerColor, Text } from 'folds'; import React, { ReactNode } from 'react'; import classNames from 'classnames'; import { BreakWord } from '../../styles/Text.css'; import { ContainerColor as ContainerClr } from '../../styles/ContainerColor.css'; import * as css from './styles.css'; type InfoCardProps = { variant?: ContainerColor; title?: ReactNode; description?: ReactNode; before?: ReactNode; after?: ReactNode; children?: ReactNode; }; export function InfoCard({ variant = 'Primary', title, description, before, after, children, }: InfoCardProps) { return ( {before && ( {before} )} {title && ( {title} )} {description && ( {description} )} {after && {after}} {children} ); }