import * as React from "react"; import * as Constants from "~/common/constants"; import { css } from "@emotion/react"; import SlateMediaObjectPreview from "~/components/core/SlateMediaObjectPreview"; const STYLES_SLATE = css` display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; @media (max-width: ${Constants.sizes.mobile}px) { justify-content: center; } `; export default class Slate extends React.Component { render() { return (
{this.props.items.map((each, index) => { return ( this.props.onSelect(index)} url={each.url} /> ); })}
); } }