mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-23 15:07:43 +01:00
9 lines
227 B
TypeScript
9 lines
227 B
TypeScript
|
export interface ButtonControlProps {
|
||
|
onClick?: () => void;
|
||
|
children?: React.ReactNode;
|
||
|
}
|
||
|
|
||
|
export function ButtonControl({ onClick, children }: ButtonControlProps) {
|
||
|
return <button onClick={onClick}>{children}</button>
|
||
|
}
|