import { Link } from 'react-router-dom' import { CircularProgress, } from '@mui/material' import { useEffect, useState } from 'react' export function Card( props ){ let [loading, setLoading] = useState(true); useEffect(() => { setTimeout(() =>{ setLoading(false) },3000) },[loading]) return(

{ props.title }

{ loading ?

:

{ props.quantity }

}
) }