import Image from "../Image/Image"; import innerText from "react-innertext"; import classNames from "classnames"; import type { ReactNode } from "react"; import type { ImageProps as NextImageProps } from "next/image"; import styles from "./Figure.module.css"; type Props = Omit & { children: ReactNode; alt?: string; // becomes optional -- pulled from plaintext-ified caption if missing className?: string; }; const Figure = ({ children, alt, className, ...imageProps }: Props) => { return (
{alt
{children}
); }; export default Figure;