import { Grid, Icon, Text } from '@chakra-ui/react'; import React from 'react'; import type { Resolution, TimeChartData } from './types'; import RepeatIcon from 'icons/repeat.svg'; import { Heading } from 'toolkit/chakra/heading'; import { Button } from '../../chakra/button'; import { DialogBody, DialogContent, DialogHeader, DialogRoot } from '../../chakra/dialog'; import { ChartWidgetContent } from './ChartWidgetContent'; export interface Props { open: boolean; onOpenChange: ({ open }: { open: boolean }) => void; title: string; description?: string; charts: TimeChartData; resolution?: Resolution; zoomRange?: [ Date, Date ]; handleZoom: (range: [ Date, Date ]) => void; handleZoomReset: () => void; }; const FullscreenChartModal = ({ charts, open, onOpenChange, title, description, resolution, zoomRange, handleZoom, handleZoomReset, }: Props) => { return ( { title } { description && ( { description } ) } { Boolean(zoomRange) && ( ) } ); }; export default FullscreenChartModal;