HabitatMap/AirCasting

View on GitHub
app/javascript/react/components/Button/Button.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
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 };