import { clsx } from 'clsx'; import styles from './card.module.scss'; import { manrope } from '@/styles/fonts'; import React, { forwardRef } from 'react'; type CardProps = Omit< React.DetailedHTMLProps, HTMLDivElement>, 'title' > & { title?: React.ReactNode; subtitle?: React.ReactNode; backdropOnText?: boolean; classes?: { [key: string]: string }; }; const Card = forwardRef(function Card( props: CardProps, ref ) { const { title, subtitle, backdropOnText, children, classes = {}, className: restClassName, ...restProps } = props; return (

{title}

{backdropOnText && (

{title}

)}
{subtitle && (

{subtitle}

{backdropOnText && (

{subtitle}

)}
)} {children && (
{children}
)}
); }); export { Card };