import { Modal, ModalBody, ModalHeader, ModalOverlay, ModalContent, useDisclosure, Skeleton, ModalCloseButton, } from '@chakra-ui/react'; import { PathButton } from '~/components'; import { useColorValue } from '~/context'; import { useLGState } from '~/hooks'; import { Chart } from './chart'; import type { TPath } from './types'; export const Path = (props: TPath) => { const { device } = props; const { getResponse } = useLGState(); const { isOpen, onClose, onOpen } = useDisclosure(); const { displayTarget } = useLGState(); const response = getResponse(device); const output = response?.output as TStructuredResponse; const bg = useColorValue('whiteFaded.50', 'blackFaded.900'); return ( <> {`Path to ${displayTarget.value}`} {response !== null ? : } ); };