anyone-oslo/pages

View on GitHub
app/javascript/components/ImageGrid.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import * as Images from "../types/Images";
import useImageGrid from "./ImageGrid/useImageGrid";
import Grid from "./ImageGrid/Grid";

type Props = Images.GridOptions & {
  records: Images.Record[];
};

export default function ImageGrid(props: Props) {
  const state = useImageGrid(props.records, props.showEmbed);

  return <Grid state={state} {...props} />;
}