movie-web/src/components/buttons/ButtonControl.tsx

18 lines
326 B
TypeScript
Raw Normal View History

2022-02-07 23:22:35 +01:00
export interface ButtonControlProps {
onClick?: () => void;
children?: React.ReactNode;
2022-02-10 23:45:17 +01:00
className?: string;
2022-02-07 23:22:35 +01:00
}
export function ButtonControl({
onClick,
children,
className,
}: ButtonControlProps) {
return (
<button onClick={onClick} className={className} type="button">
{children}
</button>
);
2022-02-07 23:22:35 +01:00
}