| 12345678910111213 |
- import React from "react";
- import styles from "./index.module.scss";
- function IsDev({ txt, isShow }: { txt: string, isShow: boolean }) {
- return (
- <div className={`${styles.isDev}`} style={{ top: isShow ? '20px' : '-50%' }}>
- <div className="txt">{txt}</div>
- </div>
- )
- }
- const MemoIsDev = React.memo(IsDev);
- export default MemoIsDev;
|