import React, { memo } from 'react'; import { Select } from 'evergreen-ui'; import { motion } from 'framer-motion'; import { FaYinYang } from 'react-icons/fa'; import { useTranslation } from 'react-i18next'; import { withBlur, toast } from './util'; const LeftMenu = memo(({ zoom, setZoom, invertCutSegments, setInvertCutSegments, toggleComfortZoom }) => { const { t } = useTranslation(); function onYinYangClick() { setInvertCutSegments(v => { const newVal = !v; if (newVal) toast.fire({ title: t('When you export, selected segments on the timeline will be REMOVED - the surrounding areas will be KEPT') }); else toast.fire({ title: t('When you export, selected segments on the timeline will be KEPT - the surrounding areas will be REMOVED.') }); return newVal; }); } const zoomOptions = Array(13).fill().map((unused, z) => 2 ** z); return (
{Math.floor(zoom)}x
); }); export default LeftMenu;