import type { HTMLAttributes } from "corvos/plugins/jsx.ts"; export type Props = HTMLAttributes<"figure"> & { children?: JSX.Element; caption?: JSX.Element; }; export const Figure = ({ children, caption, class: cls, ...props }: Props) => (
{children} {caption &&
{caption}
}
);