UNPKG

kedao

Version:

Rich Text Editor Based On Draft.js

12 lines (11 loc) 479 B
import React from 'react'; import styles from "./style.module.css"; import HtmlIcon from 'tabler-icons-react/dist/icons/brand-html5'; import { tablerIconProps } from '../../constants'; const HTMLButton = ({ mode }) => { const active = mode === 'html'; const className = active ? styles.active : ''; return (React.createElement("div", { className: className }, React.createElement(HtmlIcon, Object.assign({}, tablerIconProps)))); }; export default HTMLButton;