import { __assign, __rest } from "tslib";
import React, { forwardRef } from "react";
import { P1Styled } from "./styles";
var P1 = forwardRef(function (_a, ref) {
    var className = _a.className, title = _a.title, 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", "title", "children", "size", "type", "onClick", "color", "as"]);
    return (React.createElement(P1Styled, __assign({ size: size, type: type, onClick: onClick, className: className, color: color, as: as, title: title, ref: ref }, props), children));
});
P1.displayName = "P1";
export default P1;
