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

10 lines
282 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
}
2022-02-10 23:45:17 +01:00
export function ButtonControl({ onClick, children, className }: ButtonControlProps) {
return <button onClick={onClick} className={className}>{children}</button>
2022-02-07 23:22:35 +01:00
}