"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importStar(require("react"));
const styles_1 = require("./styles");
const Typography = (0, react_1.forwardRef)(({ variant = 'md', lineHeightVariant = 'min', children, id, accessibility, ...rest }, ref) => {
    if (variant === 'animated') {
        return (<styles_1.AnimatedText ref={ref} testID={id || accessibility || `${children}`} accessibilityLabel={accessibility || `${children}`} variant={variant} lineHeightVariant={lineHeightVariant} {...rest}>
          {children}
        </styles_1.AnimatedText>);
    }
    return (<styles_1.Text ref={ref} testID={id || accessibility || `${children}`} accessibilityLabel={accessibility || `${children}`} variant={variant} lineHeightVariant={lineHeightVariant} {...rest}>
        {children}
      </styles_1.Text>);
});
exports.default = Typography;
//# sourceMappingURL=index.js.map