{"version":3,"file":"ActionsRenderer.mjs","names":["ViewIcon","React","useTranslation","IconButtonWithTooltip","ActionsRenderer","props","$","_c","openView","data","node","t","t0","group","defaultValue","t1"],"sources":["../../../../src/UI/mapLayout/ui/ActionsRenderer.jsx"],"sourcesContent":["import { ViewIcon } from '@fluentui/react-icons';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { IconButtonWithTooltip } from '../../inputs/buttons/IconButtonWithToolTip';\n\nconst ActionsRenderer = (props) => {\n  const { openView, data, node } = props;\n  const { t } = useTranslation();\n\n  return (\n    <div>\n      {openView && !node?.group && (\n        <IconButtonWithTooltip\n          title={t('common.view', { defaultValue: 'View' })}\n          size='small'\n          onClick={() => {\n            openView(data);\n          }}\n          icon={ViewIcon}\n        />\n      )}\n    </div>\n  );\n};\n\nexport default ActionsRenderer;\n"],"mappings":";;;;;;AAKA,MAAMI,mBAAkBC,UAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CACtB,MAAA,EAAAC,UAAAC,MAAAC,SAAiCL;CACjC,MAAA,EAAAM,MAAcT,gBAAgB;CAAC,IAAAU;AAAA,KAAAN,EAAA,OAAAG,QAAAH,EAAA,OAAAI,MAAAG,SAAAP,EAAA,OAAAE,YAAAF,EAAA,OAAAK,GAAA;AAI1BC,OAAAJ,YAAA,CAAaE,MAAIG,SAChB,sBAAA,cAAC,uBAAD;GACS,OAAAF,EAAE,eAAe,EAAAG,cAAgB,QAAQ,CAAA;GAC3C,MAAA;GACI,eAAA;AACPN,aAASC,KAAK;;GAEVT,MAAAA;GAET,CAAA;AAAAM,IAAA,KAAAG;AAAAH,IAAA,KAAAI,MAAAG;AAAAP,IAAA,KAAAE;AAAAF,IAAA,KAAAK;AAAAL,IAAA,KAAAM;OAAAA,MAAAN,EAAA;CAAA,IAAAS;AAAA,KAAAT,EAAA,OAAAM,IAAA;AAVHG,OAAA,sBAAA,cAAA,OAAA,MACGH,GAUG;AAAAN,IAAA,KAAAM;AAAAN,IAAA,KAAAS;OAAAA,MAAAT,EAAA;AAAA,QAXNS"}