@paroicms/front-media-gallery
Version:
Basic media gallery react component for Paroi CMS.
17 lines (16 loc) • 754 B
TypeScript
import type { AttachedData, Media } from "@paroicms/public-anywhere-lib";
import type { GetMediaProperties, UpdateMediaCaption } from "../gallery-types";
export interface GalleryItemProps {
media: Media;
attachedData?: AttachedData;
onAction?: (imageId: unknown) => void;
onDelete?: () => Promise<void>;
onClick?: () => void;
onReplace?: () => void;
updateCaption?: UpdateMediaCaption;
getMediaProperties?: GetMediaProperties;
isMobile?: boolean;
contentLanguage?: string;
userLanguage?: string;
}
export default function GalleryItem({ media, attachedData, onAction, onDelete, onClick, onReplace, isMobile, getMediaProperties, updateCaption, contentLanguage, }: GalleryItemProps): import("react").JSX.Element;