UNPKG

@wq/material-web

Version:

Web bindings for @wq/material

24 lines (21 loc) 586 B
import React from "react"; import { Modal, CircularProgress } from "@mui/material"; import { useSpinner } from "@wq/react"; export default function Spinner() { const { active } = useSpinner(); // FIXME: text, type return ( <Modal open={active}> <div style={{ display: "flex", alignItems: "center", justifyContent: "center", height: "100vh", }} > <CircularProgress /> </div> </Modal> ); }