1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-23 15:07:43 +01:00
smov/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
}