import { memo } from 'react'; import styles from './index.less'; import React from 'react'; import { IWhiteTplConfig } from './schema'; import logo from 'editorAssets/13-空白.png'; interface IProps extends IWhiteTplConfig { isTpl: boolean; width: number; } const WhiteTpl = memo((props: IProps) => { const { bgColor, text, fontSize, color, height, width, isTpl } = props; return ( <> {isTpl ? (
) : (
{text}
)} ); }); export default WhiteTpl;