Skip to content

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.

471 B
Raw Blame
import { CircularProgress } from '@mui/material'
import './index.scss'

interface Props {
  text: string
  onClick?: () => void
}

export default function TextWithProgress({ text, onClick }: Props) {
  return (
    <div
      className="textWithProgress"
      role={onClick ? 'button' : 'status'}
      onClick={onClick}
    >
      <CircularProgress className="progress" color="inherit" size={20} />
      <span className="feedback-text">{text}</span>
    </div>
  )
}