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

9 lines
227 B
TypeScript
Raw Normal View History

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