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