{"version":3,"file":"index.mjs","sources":[""],"sourcesContent":["import type { FC, ReactNode } from \"react\";\r\nimport { useMemo } from \"react\";\r\nimport type { IFormatText } from \"./config/types\";\r\nimport { getFormattedChildren } from \"./lib\";\r\nimport type { IComponentBaseProps } from \"../../types/index\";\r\n\r\n/**\r\n * Компонент форматированного текста\r\n * @returns {ReactNode}\r\n */\r\nconst FormatText: FC<IFormatText & IComponentBaseProps> = ({ children }): ReactNode => {\r\n  return useMemo(() => {\r\n    return getFormattedChildren(children);\r\n  }, [ children ]);\r\n};\r\n\r\n\r\nexport type { IFormatText };\r\nexport { FormatText };\r\n"],"names":["FormatText","children","useMemo","getFormattedChildren"],"mappings":";;;;GAUA,MAAMA,WAAoD,EAAGC,qBACpDC,QAAQ,IACNC,qBAAqBF,UAC3B,CAAEA"}