@ozen-ui/kit
Version:
React component library
12 lines (11 loc) • 734 B
JavaScript
import { __assign, __rest } from "tslib";
import React from 'react';
import { ArrowLeftIcon } from '@ozen-ui/icons';
import { polymorphicComponentWithRef } from '../../../../../../utils/polymorphicComponentWithRef';
import { TitleIconButton } from '../../TitleIconButton';
import { TITLE_BACK_ICON_BUTTON_DEFAULT_TAG } from './constants';
export var TitleBackIconButton = polymorphicComponentWithRef(function (_a, ref) {
var _b = _a.as, as = _b === void 0 ? TITLE_BACK_ICON_BUTTON_DEFAULT_TAG : _b, other = __rest(_a, ["as"]);
return (React.createElement(TitleIconButton, __assign({}, other, { ref: ref, as: as, icon: React.createElement(ArrowLeftIcon, null) })));
});
TitleBackIconButton.displayName = 'TitleBackIconButton';