import PopupCC from '../UI/PopupCC'; import { shouldEndAtom } from './PlayViewControlBar'; import { partitionStateAtom } from './PartitionMagic'; import ScoreModal from '../ScoreModal'; import { useAtom } from 'jotai'; export const PlayEndModal = () => { const [shouldEnd] = useAtom(shouldEndAtom); const [partitionState] = useAtom(partitionStateAtom); const isEnd = shouldEnd || partitionState === 'ended'; return ( ); };