custom <Image /> wrapper now supports static imports too

This commit is contained in:
jake committed 2022-01-24 08:57:21 -05:00
1 parent 5d402bc31b
commit 51ecae3c9b
22 files changed
+289 -355

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ import type { ImageProps as NextImageProps } from "next/image";
import styles from "./Figure.module.css";
type Props = Omit<NextImageProps, "alt"> & {
children: ReactNode; // caption (can be in markdown, yay!!!)
children: ReactNode;
alt?: string; // becomes optional -- pulled from plaintext-ified caption if missing
className?: string;
};