import { Button } from '@tlon/indigo-react'; import { MouseEventHandler } from 'react'; import withFadeable from './withFadeable'; interface ActivateButtonProps { children: React.ReactNode | string; onClick: MouseEventHandler; disabled?: boolean; success?: boolean; } const ActivateButton = ({ children, onClick, disabled = false, success = false, ...rest }: ActivateButtonProps & React.ComponentPropsWithoutRef<'button'>) => { const backgroundColor = disabled ? 'rgba(0,0,0,0.2)' : success ? '#009F65' : 'black'; return ( ); }; export default ActivateButton; export const FadeableActivateButton = withFadeable(ActivateButton);