import { useState } from "react"; const PreviewDocument = ({ imageUrl }) => { const [loading, setLoading] = useState(true); const [rotation, setRotation] = useState(0); return ( <>
setRotation((prev) => prev + 90)} >
{loading && (
Loading...
)}
Full View setLoading(false)} />
); }; export default PreviewDocument;