UNPKG

@brizy/ui

Version:
10 lines (9 loc) 466 B
import React from "react"; import { classNames } from "../classNamesFn"; import Button from "antd/lib/button"; const SiderButton = props => { const { icon, active, sticky, onClick, children } = props; const _className = classNames()("sider-button", { "sider-button--active": active }, { "sider-button--sticky": sticky }); return (React.createElement(Button, { className: _className, icon: icon, onClick: onClick }, children)); }; export { SiderButton };