{"version":3,"file":"FieldError.mjs","names":[],"sources":["../../../../src/components/Form/FieldError.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport type { ComponentProps, ReactNode } from 'react';\nimport React from 'react';\n\nexport type FieldErrorProps = ComponentProps<'div'> & {\n  /** Error message or custom content, e.g. an icon with text. */\n  text?: ReactNode;\n};\n\nexport const FieldError = ({ className, text, ...props }: FieldErrorProps) => (\n  <div {...props} className={clsx('str-chat__form-field-error', className)}>\n    {text}\n  </div>\n);\n"],"mappings":";;;;AASA,IAAa,cAAc,EAAE,WAAW,MAAM,GAAG,YAC/C,oBAAC,OAAD;CAAK,GAAI;CAAO,WAAW,KAAK,8BAA8B,SAAS;WACpE;AACE,CAAA"}