mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-23 15:07:43 +01:00
17 lines
326 B
TypeScript
17 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>
|
|
);
|
|
}
|