movie-web/src/components/buttons/ButtonControl.tsx
2022-03-13 19:08:45 +01:00

18 lines
326 B
TypeScript

export interface ButtonControlProps {
onClick?: () => void;
children?: React.ReactNode;
className?: string;
}
export function ButtonControl({
onClick,
children,
className,
}: ButtonControlProps) {
return (
<button onClick={onClick} className={className} type="button">
{children}
</button>
);
}