import { useState } from 'react'; import { Column, type ColumnProps, Row, Icon, Button, TooltipTrigger, Tooltip, Heading, } from '@umami/react-zen'; import { Maximize, X } from '@/components/icons'; import { useMessages } from '@/components/hooks'; export interface PanelProps extends ColumnProps { title?: string; allowFullscreen?: boolean; } const fullscreenStyles = { position: 'fixed', width: '100%', height: '100%', top: 0, left: 0, border: 'none', zIndex: 9999, } as any; export function Panel({ title, allowFullscreen, style, children, ...props }: PanelProps) { const { formatMessage, labels } = useMessages(); const [isFullscreen, setIsFullscreen] = useState(false); const handleFullscreen = () => { setIsFullscreen(!isFullscreen); }; return ( {title && {title}} {allowFullscreen && ( {formatMessage(labels.maximize)} )} {children} ); }