import React, { useState } from 'react'; import { CloseButton } from 'app/core/components/CloseButton/CloseButton'; import { GeomapLayerHover } from '../event'; import { DataHoverRows } from './DataHoverRows'; import { DataHoverTabs } from './DataHoverTabs'; export interface Props { layers?: GeomapLayerHover[]; isOpen: boolean; onClose: () => void; } export const ComplexDataHoverView = ({ layers, onClose, isOpen }: Props) => { const [activeTabIndex, setActiveTabIndex] = useState(0); if (!layers) { return null; } return ( <> {isOpen && } ); };