({
onClick,
children,
className,
}: {
onClick: () => void;
children: React.ReactNode;
className?: string;
})
| 1 | export const Button = ({ |
| 2 | onClick, |
| 3 | children, |
| 4 | className, |
| 5 | }: { |
| 6 | onClick: () => void; |
| 7 | children: React.ReactNode; |
| 8 | className?: string; |
| 9 | }) => { |
| 10 | return ( |
| 11 | <button |
| 12 | onClick={onClick} |
| 13 | className={`px-2 py-2 text-2xl bg-green-500 text-white font-bold rounded ${className}`} |
| 14 | > |
| 15 | {children} |
| 16 | </button> |
| 17 | ); |
| 18 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected