Sha256: 770d9c111911e118570f157aa8aaad31978997ef6d5b74f9f489e09e164885bd

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

import * as Attachments from "../../types/Attachments";
import { Locale } from "../../types";

import List from "../Attachments/List";

type Props = {
  locale: string;
  locales: { [index: string]: Locale };
  state: Attachments.State;
};

export default function Files(props: Props) {
  const { locale, locales, state } = props;

  return (
    <div className="page-files">
      <List
        attribute="page[page_files_attributes]"
        showEmbed={true}
        locale={locale}
        locales={locales}
        state={state}
      />
    </div>
  );
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.15.5 app/javascript/components/PageForm/Files.tsx