import { type ComponentProps, type FC, type ReactNode } from 'react' import Image from 'next/image' import piggyBank from '../assets/piggy-bank-01.svg' import Effect from '../assets/option-card-effect-blue.svg' import classNames from '@/utils/classnames' const TriangleArrow: FC> = props => ( ) type OptionCardHeaderProps = { icon: ReactNode title: ReactNode description: string isActive?: boolean activeClassName?: string effectImg?: string } export const OptionCardHeader: FC = (props) => { const { icon, title, description, isActive, activeClassName, effectImg } = props return
{isActive && }
{icon || {description}}
{title}
{description}
} type OptionCardProps = { icon: ReactNode className?: string activeHeaderClassName?: string title: ReactNode description: string isActive?: boolean actions?: ReactNode effectImg?: string } & Omit, 'title'> export const OptionCard: FC = (props) => { const { icon, className, title, description, isActive, children, actions, activeHeaderClassName, style, effectImg, ...rest } = props return
{/** Body */} {isActive &&
{children} {actions &&
{actions}
}
}
}