import { forwardRef } from 'react' import type { ReactNode } from 'react' import { Box, BoxProps } from '../Box' import { Image } from '../Image' import { cx } from '../classnames' export interface FigureProps extends BoxProps { caption: ReactNode src: string alt: string } export let Figure = forwardRef(function Figure( { caption, src, alt, ...props }: FigureProps, ref, ) { return ( {alt} {caption} ) }) export default Figure