import React from 'react';
import { Text } from '@pulse/ui/components/Text';
import { FontType } from "../../constants";
export const TextBlock = React.forwardRef((props, ref) => {
    const { variant = FontType.default.variant, as = FontType.default.as, color = FontType.default.color, className, style, children, title, onClick, } = props;
    let _style = style;
    if (color) {
        _style = Object.assign(Object.assign({}, style), { color });
    }
    return (React.createElement(Text, { as: as, variant: variant, ref: ref, className: className, style: _style, title: title, onClick: onClick }, children));
});
