import { Box } from "@mui/material"; import { ReactPhotoSphereViewer } from "react-photo-sphere-viewer"; import { ThreeView } from "./ThreeView"; export interface MediaData { id: string | number; media_type: number; filename?: string; } export function MediaViewer({ media, className, }: Readonly<{ media?: MediaData; className?: string }>) { const token = localStorage.getItem("token"); return ( {media?.media_type === 1 && ( {media?.filename} )} {media?.media_type === 2 && ( ); }