mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-02-26 01:50:27 +00:00
14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
import React, { memo } from 'react';
|
|
import styles from './index.less';
|
|
import { ITextConfig } from './schema';
|
|
|
|
const Text = memo((props: ITextConfig) => {
|
|
const { align, text, fontSize, color, lineHeight } = props;
|
|
return (
|
|
<div className={styles.textWrap} style={{ color, textAlign: align, fontSize, lineHeight }}>
|
|
{text}
|
|
</div>
|
|
);
|
|
});
|
|
export default Text;
|