react-dsfr
react-dsfr copied to clipboard
Footer operatorLogo & next/image
Hi,
I'm new using the package and i want to know how to use the operator Logo.image with Next JS & next/image features.
Do you made it already ?
Thanks
Hi!
Right now, I think you can't use a next/image component as a value of operatorLogo prop (https://github.com/codegouvfr/react-dsfr/blob/main/src/Footer.tsx#L28).
We could consider adjusting this prop to accept its current type and a ReactNode (or something more restrictive)?
@sylvainlg would you link me the relevent next.js doc
Hi The next documentation : https://nextjs.org/docs/api-reference/next/image