ConceptPortal-public/rsconcept/frontend/src/components/info/ConstituentaTooltip.tsx

19 lines
568 B
TypeScript
Raw Normal View History

2024-03-20 15:27:32 +03:00
import InfoConstituenta from '@/components/info/InfoConstituenta';
import Tooltip from '@/components/ui/Tooltip';
import { IConstituenta } from '@/models/rsform';
2023-07-30 16:48:25 +03:00
interface ConstituentaTooltipProps {
2023-12-28 14:04:44 +03:00
data: IConstituenta;
anchor: string;
2023-07-30 16:48:25 +03:00
}
function ConstituentaTooltip({ data, anchor }: ConstituentaTooltipProps) {
return (
<Tooltip clickable layer='z-modal-tooltip' anchorSelect={anchor} className='max-w-[30rem]'>
<InfoConstituenta data={data} onClick={event => event.stopPropagation()} />
</Tooltip>
2023-12-28 14:04:44 +03:00
);
2023-07-30 16:48:25 +03:00
}
2023-12-28 14:04:44 +03:00
export default ConstituentaTooltip;