import { forwardRef, type ReactNode, type HTMLAttributes } from 'react';
import cn from 'classnames';
import '../styles/components/card.scss';
type Props = {
/**
* The card header (should include the wanted heading level)
*/
header?: ReactNode;
/**
* Does the card header need a separator? Defaults to true
*/
headerSeparator?: boolean;
/**
* Link components to be displayed at the bottom of the card
*/
links?: ReactNode[];
};
const Card = forwardRef>(
(
{ header, headerSeparator = true, children, links, className, ...props },
ref
) => (
{header && (
{header}
)}
{children &&
{children}
}
{!!links?.length && {links}
}
)
);
export default Card;