15 lines
250 B
TypeScript
15 lines
250 B
TypeScript
import React from "react";
|
|
|
|
export const Button = ({
|
|
onClick,
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
onClick: () => void;
|
|
}) => {
|
|
return (
|
|
<button className="btn btn-primary" onClick={onClick}>
|
|
{children}
|
|
</button>
|
|
);
|
|
};
|