wwf
22 小时以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use client'
import type { FC } from 'react'
import React from 'react'
import {
  RiAddLine,
} from '@remixicon/react'
import cn from '@/utils/classnames'
import Button from '@/app/components/base/button'
 
type Props = {
  className?: string
  text: string
  onClick: () => void
}
 
const AddButton: FC<Props> = ({
  className,
  text,
  onClick,
}) => {
  return (
    <Button
      className={cn('w-full', className)}
      variant='tertiary'
      size='medium'
      onClick={onClick}
    >
      <RiAddLine className='mr-1 w-3.5 h-3.5' />
      <div>{text}</div>
    </Button>
  )
}
export default React.memo(AddButton)