import React, { DetailedHTMLProps, HTMLAttributes } from "react"; import { twMerge } from "tailwind-merge"; /** * # General Card * @className_wrapper twui-card */ export default function Card({ href, variant, linkProps, ...props }: DetailedHTMLProps, HTMLDivElement> & { variant?: "normal"; href?: string; linkProps?: DetailedHTMLProps< React.AnchorHTMLAttributes, HTMLAnchorElement >; }) { const component = (
{props.children}
); if (href) { return ( {component} ); } return component; }