20 lines
499 B
TypeScript
20 lines
499 B
TypeScript
import { Box } from "@mui/material";
|
|
import { useLocation } from "react-router-dom";
|
|
|
|
export default function ChatImageNewWindow() {
|
|
const location = useLocation();
|
|
const srcImage = location.pathname.split("image/")[1];
|
|
return (
|
|
<>
|
|
<Box
|
|
component="img"
|
|
sx={{
|
|
maxHeight: "100vh",
|
|
maxWidth: "100vw",
|
|
}}
|
|
src={`https://3c580be9-cf31f296-d055-49cf-b39e-30c7959dc17b.s3.timeweb.cloud/angesight/pair/${srcImage}`}
|
|
/>
|
|
</>
|
|
);
|
|
}
|