index.tsx 579 B

12345678910111213141516171819202122232425
  1. import React from 'react'
  2. import styles from './index.module.scss'
  3. import { ArrowRightOutlined } from '@ant-design/icons'
  4. import { baseURL } from '@/utils/http'
  5. type Props = {
  6. clickSon: () => void
  7. txt: string
  8. }
  9. function NextPage({ clickSon, txt }: Props) {
  10. return (
  11. <div className={styles.NextPage}>
  12. <img className='NPimg' src={`${baseURL}visit/btn.png`} alt='' />
  13. <div className='NPdiv' onClick={clickSon}>
  14. {txt}
  15. <ArrowRightOutlined />
  16. </div>
  17. </div>
  18. )
  19. }
  20. const MemoNextPage = React.memo(NextPage)
  21. export default MemoNextPage