import type { CardProps } from "@mantine/core"; import { Card, useComputedColorScheme, useMantineTheme } from "@mantine/core"; import type { ReactNode } from "react"; interface HelpCardProps extends CardProps { children: ReactNode; icon?: ReactNode; title?: string; minHeight?: string | number; // Allow specifying a minimum height } export const HelpCard = ({ children, icon, title, minHeight = "auto", // Default to auto, but allow override ...props }: HelpCardProps) => { const theme = useMantineTheme(); const colorScheme = useComputedColorScheme("light"); const isDark = colorScheme === "dark"; return ( {(icon || title) && (
{icon && (
{icon}
)} {title && (

{title}

)}
)}
{children}
); };