2024-01-04 19:38:12 +03:00
|
|
|
import InfoConstituenta from '@/components/InfoConstituenta';
|
|
|
|
import Tooltip from '@/components/ui/Tooltip';
|
2023-12-13 14:32:57 +03:00
|
|
|
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 (
|
2024-01-04 19:30:10 +03:00
|
|
|
<Tooltip clickable anchorSelect={anchor} className='max-w-[30rem]'>
|
2023-12-28 14:04:44 +03:00
|
|
|
<InfoConstituenta data={data} />
|
2024-01-04 19:30:10 +03:00
|
|
|
</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;
|