mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-17 22:30:36 +03:00
22 lines
616 B
TypeScript
22 lines
616 B
TypeScript
![]() |
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 (
|
||
|
<Tooltip
|
||
|
clickable
|
||
|
id={globalIDs.constituenta_tooltip}
|
||
|
layer='z-topmost'
|
||
|
className='max-w-[30rem]'
|
||
|
hidden={!hoverCst}
|
||
|
>
|
||
|
{hoverCst ? <InfoConstituenta data={hoverCst} onClick={event => event.stopPropagation()} /> : null}
|
||
|
</Tooltip>
|
||
|
);
|
||
|
}
|