import React, { useEffect } from 'react'; import cn from 'classnames'; import { LeftOutlined, RightOutlined } from '@ant-design/icons'; import { Button, Popover } from 'antd'; import { useStore } from 'App/mstore'; import { observer } from 'mobx-react-lite'; import AutoplayToggle from 'Shared/AutoplayToggle'; // import AutoplayToggle from "Components/Session/Player/ClipPlayer/AutoplayToggle"; interface Props { } function QueueControls(props: Props) { const { clipStore, projectsStore, sessionStore, searchStore, } = useStore(); const previousId = clipStore.prevId; const { nextId } = clipStore; const nextHandler = () => { clipStore.next(); }; const prevHandler = () => { clipStore.prev(); }; return (
Play Previous Session
} open={previousId ? undefined : false} mouseEnterDelay={1} >
Play Next Session
} open={nextId ? undefined : false} mouseEnterDelay={1} > ); } export default observer(QueueControls);