app/javascript/react/components/Button/Button.tsx
import React from "react";
import * as S from "./Button.style";
interface ButtonProps {
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
children: string | JSX.Element | (JSX.Element | string)[];
}
const Button = ({ children, ...props }: ButtonProps) => (
<S.Button {...props}>{children}</S.Button>
);
export { Button };