2025-02-26 20:35:16 +03:00
|
|
|
import { Tooltip } from '@/components/Container';
|
|
|
|
import { globalIDs } from '@/utils/constants';
|
|
|
|
|
|
|
|
import { useCstTooltipStore } from '../stores/cstTooltip';
|
|
|
|
|
|
|
|
import { InfoConstituenta } from './InfoConstituenta';
|
|
|
|
|
|
|
|
export function ConstituentaTooltip() {
|
|
|
|
const hoverCst = useCstTooltipStore(state => state.activeCst);
|
|
|
|
return (
|
2025-03-09 21:59:21 +03:00
|
|
|
<Tooltip clickable id={globalIDs.constituenta_tooltip} layer='z-topmost' className='max-w-120' hidden={!hoverCst}>
|
2025-02-26 20:35:16 +03:00
|
|
|
{hoverCst ? <InfoConstituenta data={hoverCst} onClick={event => event.stopPropagation()} /> : null}
|
|
|
|
</Tooltip>
|
|
|
|
);
|
|
|
|
}
|