@oak-digital/nextjs-strapi-image
Version:
Small wrapper for next/image, to easily populate strapi media attributes
12 lines (11 loc) • 404 B
TypeScript
import { ImageProps } from 'next/image';
import { IMedia } from './generated';
declare const nextStrapiImageOmitted: readonly ["src", "alt"];
type NextStrapiImageOmitted = (typeof nextStrapiImageOmitted)[number];
export type NextStrapiImageProps = {
strapiUrl?: string;
fallbackSize?: boolean;
alt?: string;
media?: IMedia | null;
} & Omit<ImageProps, NextStrapiImageOmitted>;
export {};