import React, { memo, useState } from 'react'; import styles from './index.less'; import { IButtonConfig } from './schema'; import logo from 'editorAssets/richText.png'; interface IProps extends IButtonConfig { isTpl: boolean; } const XButton = memo((props: IProps) => { const { isTpl, borderColor, borderWidth, round, padding, content } = props; return isTpl ? (