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