/** @jsx jsx */ import { jsx, css, keyframes } from '@emotion/core' import { Box } from 'theme-ui' const radius = 40 const circ = 2 * radius * Math.PI /** This spinner was made because theme-ui's is under-performant. * Theirs triggers layout and style events that cause excessive * CPU usage, whereas this one only uses GPU for animation. * Be very careful when changing it so the purpose is not defeated. */ const Spinner = ({ width, height, size = 40, color, ...props }: { width?: number height?: number size?: number color?: string } & any) => ( ) export default Spinner