import { cn } from '@/utils/tw-merge'; import { Card } from '../common/Card'; import type { LucideIcon } from 'lucide-react'; import type { PropsWithChildren, ReactNode } from 'react'; import type { IconType } from 'react-icons'; type CardContainerProps = { heading: string; description?: string; Icon?: IconType | LucideIcon; isRightContentFull?: boolean; rightContent?: ReactNode; }; export const CardContainer = ({ heading, description, Icon, isRightContentFull, rightContent, children, }: PropsWithChildren) => (
{Icon ? (
) : null}

{heading}

{description ? (

{description}

) : null}
{rightContent ? (
{rightContent}
) : null}
{children ? (
{children}
) : null}
);