mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-17 00:06:46 +00: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>
|
|
);
|
|
}
|