2023-11-01 14:09:44 +03:00
|
|
|
import { IConstituenta } from '../../models/rsform';
|
2023-11-27 12:11:39 +03:00
|
|
|
import ConceptTooltip from '../Common/ConceptTooltip';
|
2023-11-30 02:14:24 +03:00
|
|
|
import InfoConstituenta from '../Shared/InfoConstituenta';
|
2023-07-30 16:48:25 +03:00
|
|
|
|
|
|
|
interface ConstituentaTooltipProps {
|
|
|
|
data: IConstituenta
|
|
|
|
anchor: string
|
|
|
|
}
|
|
|
|
|
|
|
|
function ConstituentaTooltip({ data, anchor }: ConstituentaTooltipProps) {
|
|
|
|
return (
|
|
|
|
<ConceptTooltip
|
|
|
|
anchorSelect={anchor}
|
2023-07-31 22:38:58 +03:00
|
|
|
className='max-w-[25rem] min-w-[25rem]'
|
2023-07-30 16:48:25 +03:00
|
|
|
>
|
2023-08-16 10:11:22 +03:00
|
|
|
<InfoConstituenta data={data} />
|
2023-07-30 16:48:25 +03:00
|
|
|
</ConceptTooltip>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ConstituentaTooltip;
|