github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/ui/LoadingSpinner.tsx (about) 1 import React from 'react'; 2 import Spinner from 'react-svg-spinner'; 3 4 interface LoadingSpinnerProps { 5 className?: string; 6 size?: string; 7 } 8 9 export default function LoadingSpinner({ 10 className, 11 size = '20px', 12 }: LoadingSpinnerProps) { 13 // TODO ditch the library and create ourselves 14 return ( 15 <span role="progressbar" className={className}> 16 <Spinner color="rgba(255,255,255,0.6)" size={size} /> 17 </span> 18 ); 19 }