You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
983 B
JavaScript
29 lines
983 B
JavaScript
import { createContext, useEffect, useState } from 'react'
|
|
import { useOrderStore } from '@/stores/OrderStore'
|
|
import { Tooltip, Button } from 'antd'
|
|
import GeneratePaymentDrawer from '../Components/GeneratePaymentDrawer'
|
|
|
|
const PaymentlinkBtn = ({ type, ...props }) => {
|
|
const [openPaymentDrawer] = useOrderStore((state) => [state.openDrawer])
|
|
|
|
return (
|
|
<>
|
|
{/* <GeneratePaymentDrawer /> */}
|
|
<Tooltip title='支付链接'>
|
|
{/* <Button type='text' onClick={() => openPaymentDrawer()} icon={<DollarOutlined className='text-orange-500' />} size={'middle'} /> */}
|
|
|
|
{type === 'link' ? (
|
|
<Button type={'link'} onClick={() => openPaymentDrawer()}>
|
|
支付链接
|
|
</Button>
|
|
) : (
|
|
<Button type='text' onClick={() => openPaymentDrawer()} size={'middle'} className='px-1'>
|
|
💲
|
|
</Button>
|
|
)}
|
|
</Tooltip>
|
|
</>
|
|
)
|
|
}
|
|
export default PaymentlinkBtn
|