Spaces:
Runtime error
Runtime error
File size: 555 Bytes
e82c85b c79b0f3 e82c85b c79b0f3 e82c85b c79b0f3 e82c85b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import React from 'react';
import { MouseEventHandler, ReactElement } from 'react';
import { Button } from 'react95';
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 };
|