import { Box, HTMLChakraProps, forwardRef, Image } from "@chakra-ui/react";
export interface PictureProps extends HTMLChakraProps<"img"> {
alt: string;
src: string;
sources?: {
media?: string;
srcSet: string;
}[];
}
export const Picture = forwardRef(
({ sources, ...props }, ref) => (
{sources?.map((source, idx) => (
))}
)
);
Picture.displayName = "Picture";