import React, {useMemo} from 'react'; import {useTheme} from '@material-ui/core/styles'; import LayoutIcon from '../icons/Layout'; import { HORIZONTAL_LAYOUT, FLEXIGRID_LAYOUT, INDIVIDUAL_LAYOUT, } from '../../constants/previewerLayouts'; import Select from '../Select'; import useCommonStyles from '../useCommonStyles'; function PreviewerLayoutSelector(props) { const theme = useTheme(); const commonClasses = useCommonStyles(); const selectedOption = useMemo( () => options.find(option => option.value === props.value), [props.value] ); return (
Layout