2023-01-05 01:04:09 -08:00
|
|
|
import { MangoAccount } from '@blockworks-foundation/mango-v4'
|
|
|
|
import { LinkButton } from '@components/shared/Button'
|
|
|
|
import { ReactNode } from 'react'
|
|
|
|
|
|
|
|
const ActionsLinkButton = ({
|
|
|
|
children,
|
|
|
|
mangoAccount,
|
|
|
|
onClick,
|
|
|
|
}: {
|
|
|
|
children: ReactNode
|
|
|
|
mangoAccount: MangoAccount
|
|
|
|
onClick: () => void
|
|
|
|
}) => {
|
|
|
|
return (
|
|
|
|
<LinkButton
|
2023-04-20 19:32:20 -07:00
|
|
|
className="w-full whitespace-nowrap text-left font-normal"
|
2023-01-05 01:04:09 -08:00
|
|
|
disabled={!mangoAccount}
|
|
|
|
onClick={onClick}
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</LinkButton>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ActionsLinkButton
|