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

const TextRoot = ({
  children,
  className,
  size,
  variant,
  ...rest
}) => {
  const styles = textVariants({
    size,
    variant,
    className
  });
  return /*#__PURE__*/jsx(Text, {
    className: styles,
    ...rest,
    children: children
  });
};

export { TextRoot };
