"use client";
import { errorMessageVariants } from '@heroui/styles';
import { Text } from 'react-aria-components';
import { jsx } from 'react/jsx-runtime';

const ErrorMessageRoot = ({
  children,
  className,
  ...rest
}) => {
  return /*#__PURE__*/jsx(Text, {
    className: errorMessageVariants({
      className
    }),
    "data-slot": "error-message",
    slot: "errorMessage",
    ...rest,
    children: children
  });
};

export { ErrorMessageRoot };
