import type { NextPage } from "next"; import styles from "../styles/Spinner.module.scss"; const Spinner: NextPage<{size: number}> = ({ size }) => { const diameterY = 300; const padding = 25; const rad = (angle: number) => angle * (Math.PI / 180); const side = (diameterY / 2) / Math.sin(rad(60)); const x0 = side * Math.sin(rad(30)); const vbSizeX = (2 * x0) + side + (2 * padding); const vbSizeY = diameterY + (2 * padding); return
; }; export default Spinner;