Sha256: bccb051abe92c2f5791d6b73dccfec2f3aa860e8fa62ed639a4ad72c96297568
Contents?: true
Size: 687 Bytes
Versions: 5
Compression:
Stored size: 687 Bytes
Contents
import React from "react"; import { ImageResource, Locale } from "../types"; import ImageGrid from "./ImageGrid"; interface PageImage { id: number | null; image: ImageResource; } interface PageImagesProps { locale: string; locales: { [index: string]: Locale }; records: PageImage[]; } export default function PageImages(props: PageImagesProps) { return ( <div className="page-images"> <ImageGrid attribute="page[page_images_attributes]" primaryAttribute="page[image_id]" enablePrimary={true} showEmbed={true} locale={props.locale} locales={props.locales} records={props.records} /> </div> ); }
Version data entries
5 entries across 5 versions & 1 rubygems