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'; 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 && ( )} ); }