import Image from "./Image"; import innerText from "react-innertext"; import type { ReactNode } from "react"; import type { CustomImageProps } from "./Image"; export type CustomFigureProps = Omit & { children: ReactNode; // caption (can be in markdown, yay!!!) alt?: string; // becomes optional -- pulled from plaintext-ified caption if missing }; const CustomFigure = ({ children, alt, ...imageProps }: CustomFigureProps) => { return (
{alt
{children}
); }; export default CustomFigure;