2023-12-13 14:32:57 +03:00
|
|
|
import ConceptTooltip from '@/components/Common/ConceptTooltip';
|
|
|
|
import InfoConstituenta from '@/components/Shared/InfoConstituenta';
|
|
|
|
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 (
|
2023-12-28 14:04:44 +03:00
|
|
|
<ConceptTooltip clickable anchorSelect={anchor} className='max-w-[30rem]'>
|
|
|
|
<InfoConstituenta data={data} />
|
|
|
|
</ConceptTooltip>
|
|
|
|
);
|
2023-07-30 16:48:25 +03:00
|
|
|
}
|
|
|
|
|
2023-12-28 14:04:44 +03:00
|
|
|
export default ConstituentaTooltip;
|