UNPKG

@ozen-ui/kit

Version:

React component library

15 lines (14 loc) 954 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TitleBackIconButton = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var icons_1 = require("@ozen-ui/icons"); var polymorphicComponentWithRef_1 = require("../../../../../../utils/polymorphicComponentWithRef"); var TitleIconButton_1 = require("../../TitleIconButton"); var constants_1 = require("./constants"); exports.TitleBackIconButton = (0, polymorphicComponentWithRef_1.polymorphicComponentWithRef)(function (_a, ref) { var _b = _a.as, as = _b === void 0 ? constants_1.TITLE_BACK_ICON_BUTTON_DEFAULT_TAG : _b, other = tslib_1.__rest(_a, ["as"]); return (react_1.default.createElement(TitleIconButton_1.TitleIconButton, tslib_1.__assign({}, other, { ref: ref, as: as, icon: react_1.default.createElement(icons_1.ArrowLeftIcon, null) }))); }); exports.TitleBackIconButton.displayName = 'TitleBackIconButton';