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 {
|
|
|
|
data: IConstituenta
|
|
|
|
anchor: string
|
|
|
|
}
|
|
|
|
|
|
|
|
function ConstituentaTooltip({ data, anchor }: ConstituentaTooltipProps) {
|
|
|
|
return (
|
2023-12-05 01:22:44 +03:00
|
|
|
<ConceptTooltip
|
|
|
|
anchorSelect={anchor}
|
|
|
|
className='max-w-[25rem] min-w-[25rem]'
|
|
|
|
>
|
|
|
|
<InfoConstituenta data={data} />
|
|
|
|
</ConceptTooltip>);
|
2023-07-30 16:48:25 +03:00
|
|
|
}
|
|
|
|
|
2023-12-13 14:32:57 +03:00
|
|
|
export default ConstituentaTooltip;
|