import { __assign, __rest } from "tslib";
import React, { forwardRef } from "react";
import { P2Styled } from "./styles";
var P2 = forwardRef(function (_a, ref) {
    var className = _a.className, children = _a.children, size = _a.size, type = _a.type, onClick = _a.onClick, color = _a.color, _b = _a.as, as = _b === void 0 ? "span" : _b, props = __rest(_a, ["className", "children", "size", "type", "onClick", "color", "as"]);
    return (React.createElement(P2Styled, __assign({ size: size, type: type, onClick: onClick, className: className, color: color, as: as, ref: ref }, props), children));
});
P2.displayName = "P2";
export default P2;
