mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 07:21:17 -04:00
custom <Image />
wrapper now supports static imports too
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user