{"version":3,"file":"ModalTitle.mjs","sources":[""],"sourcesContent":["import type { FC, PropsWithChildren, ReactElement } from \"react\";\r\nimport { useContext } from \"react\";\r\nimport type { TModalContext } from \"../config/types\";\r\nimport { ModalContext } from \"../context\";\r\n\r\n/**\r\n * Заголовок модального окна\r\n * @returns {ReactElement}\r\n */\r\nexport const ModalTitle: FC<PropsWithChildren> = ({ children }): ReactElement => {\r\n\r\n  const { getCN } = useContext<TModalContext>(ModalContext);\r\n\r\n  return (\r\n    <div className={getCN(\"title\")}>\r\n      {children}\r\n    </div>\r\n  );\r\n\r\n};\r\n"],"names":["ModalTitle","children","getCN","useContext","ModalContext","_jsx","className"],"mappings":"gHASO,MAAMA,WAAoC,EAAGC,sBAElD,MAAMC,MAAEA,OAAUC,WAA0BC;AAE5C,OACEC,IAAA,MAAA,CAAKC,UAAWJ,MAAM,SAASD,SAC5BA"}