HabitatMap/AirCasting

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

Summary

Maintainability
A
45 mins
Test Coverage
import React from "react";

import * as S from "./ScrollButton.style";

interface ButtonProps {
  onClick: () => void;
  children: string | JSX.Element | (JSX.Element | string)[];
  disabled?: boolean;
}

const ScrollButton = ({ children, ...props }: ButtonProps) => (
  <S.ScrollButton {...props}>{children}</S.ScrollButton>
);

export { ScrollButton };