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

Version Path
pages_core-3.14.0 app/javascript/components/PageImages.tsx
pages_core-3.13.0 app/javascript/components/PageImages.tsx
pages_core-3.12.7 app/javascript/components/PageImages.tsx
pages_core-3.12.6 app/javascript/components/PageImages.tsx
pages_core-3.12.5 app/javascript/components/PageImages.tsx