index.tsx 496 B

123456789101112131415161718192021222324
  1. import React from 'react'
  2. import styles from './index.module.scss'
  3. import { ArrowRightOutlined } from '@ant-design/icons'
  4. type Props = {
  5. clickSon: () => void
  6. txt: string
  7. }
  8. function NextPage({ clickSon, txt }: Props) {
  9. return (
  10. <div className={styles.NextPage}>
  11. <div className='NPdiv' onClick={clickSon}>
  12. {txt}
  13. {/* @ts-ignore */}
  14. <ArrowRightOutlined />
  15. </div>
  16. </div>
  17. )
  18. }
  19. const MemoNextPage = React.memo(NextPage)
  20. export default MemoNextPage