import clsx from "clsx"; import type { ComponentProps, ReactNode } from "react"; import { UnstyledToolbar } from "../UnstyledToolbar/index.js"; type Props = ComponentProps<"div"> & { header: ReactNode | ReactNode[]; children: ReactNode | ReactNode[]; full?: boolean; } & ( | { toolbar?: undefined } | { toolbar: ReactNode | ReactNode[]; toolbarLabel: string } ); export const Card = ({ header, children, full, ...props }: Props) => (

{header}

{props.toolbar && ( {props.toolbar} )}
{children}
);