Image
Example: next/image
next/imageimport { ShopstoryProvider, ImageProps } from "@shopstory/react";
import NextImage from "next/image";
const Image : React.FC<ImageProps> = (props) => {
return <NextImage src={props.src} alt={props.alt} layout={"fill"} />
}
export const DemoShopstoryProvider : React.FC = ({ children }) => {
return <ShopstoryProvider
Image={Image}
>
{ children }
</ShopstoryProvider>
}Last updated