mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
27 lines
706 B
TypeScript
27 lines
706 B
TypeScript
import React, { memo } from 'react'
|
|
import { IconBuy } from 'src/components/icons'
|
|
import ButtonCommon from '../ButtonCommon/ButtonCommon'
|
|
|
|
interface Props {
|
|
type?: 'primary' | 'light' | 'ghost' | 'lightBorderNone',
|
|
size?: 'default' | 'large' | 'small',
|
|
loading?: boolean,
|
|
disabled?: boolean,
|
|
onClick?: () => void,
|
|
}
|
|
|
|
const ButtonIconBuy = memo(({ type = 'light', size = 'small', loading = false, disabled, onClick }: Props) => {
|
|
return (
|
|
<ButtonCommon
|
|
type={type}
|
|
size={size}
|
|
loading={loading}
|
|
disabled={disabled}
|
|
onClick={onClick}
|
|
icon={<IconBuy />}
|
|
/>
|
|
)
|
|
})
|
|
|
|
export default ButtonIconBuy
|