function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import { useStyles } from './styles';
import { useAmityElement } from '../../hooks';
import { Typography } from '../../../core/components/Typography/Typography';
import { ComponentID, ElementID, PageID } from '../../enums/enumUIKitID';
function FormDescription({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  elementId = ElementID.WildCardElement,
  ...props
}) {
  const {
    isExcluded,
    accessibilityId,
    config,
    themeStyles
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const styles = useStyles(themeStyles);
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(Typography.Caption, _extends({
    testID: accessibilityId,
    accessibilityLabel: accessibilityId,
    style: [styles.formDescription, props.style]
  }, props), config === null || config === void 0 ? void 0 : config.text);
}
export default FormDescription;
//# sourceMappingURL=index.js.map