Spaces:
Runtime error
Runtime error
import React from 'react'; | |
import { MouseEventHandler, ReactElement } from 'react'; | |
interface Props { | |
handleClick: MouseEventHandler<HTMLButtonElement>; | |
children: ReactElement; | |
} | |
const DashButton = ({ handleClick, children }: Props) => { | |
return ( | |
<button | |
className="border-dashed border-2 border-black rounded-lg py-2 px-4 text-black hover:bg-black hover:text-white transition-all duration-300 ease-in-out" | |
onClick={handleClick} | |
> | |
{children} | |
</button> | |
); | |
}; | |
export { DashButton }; | |