import innerText from "react-innertext"; import clsx from "clsx"; import Image from "../Image"; import type { PropsWithChildren, ComponentPropsWithoutRef } from "react"; import styles from "./Figure.module.css"; export type FigureProps = Omit, "alt"> & PropsWithChildren<{ alt?: string; // becomes optional -- pulled from plaintext-ified caption if missing }>; const Figure = ({ children, alt, className, ...imageProps }: FigureProps) => { return (
{alt
{children}
); }; export default Figure;