import { Box, Button, Flex, Text } from '@chakra-ui/react'; import { RemoveScroll } from 'react-remove-scroll'; import { RoadmapType } from '../../lib/roadmap'; import RoadmapGroup from '../../pages/[roadmap]/[group]'; import { CheckIcon, CloseIcon, RepeatIcon } from '@chakra-ui/icons'; import { queryGroupElementsById } from '../../lib/renderer'; type ContentDrawerProps = { roadmap: RoadmapType; groupId: string; onClose?: () => void; }; export function ContentDrawer(props: ContentDrawerProps) { const { roadmap, groupId, onClose = () => null } = props; if (!groupId) { return null; } const isDone = localStorage.getItem(groupId) === 'done'; return ( {!isDone && ( )} {isDone && ( )} ); }