import React, { Component } from 'react' import { ZoomPlus } from '../../nav/viewer.icons.js' import actions from 'app/actions' export const Vitrine = ({ media }) => { const { image_order, image_lookup, thumbnail_lookup } = media.settings const width = (Math.floor(100 / image_order.length * 2) - 2) + 'vw' // console.log(width) return (
{image_order.map(id => { const thumbnail = thumbnail_lookup[id] return ( ) })}
) } const VitrineItem = ({ media, id, image, width }) => { return (
actions.viewer.openVitrineModal(media, id)}>
{ZoomPlus}
) }