import React from 'react' import Checkmark from './svg/Checkmark' import { EXPORT_SIZES, COLORS } from '../lib/constants' export default class extends React.Component { constructor(props) { super(props) this.state = { isVisible: false } this.select = this.select.bind(this) this.toggle = this.toggle.bind(this) } select(exportSize) { if (this.props.selected !== exportSize) { this.props.onChange(exportSize) } } toggle() { this.setState({ isVisible: !this.state.isVisible }) } renderExportSizes() { return EXPORT_SIZES.map(exportSize => (