finished most of the popup for file details and media

This commit is contained in:
subnub
2024-07-08 09:29:17 -04:00
parent b45d06151f
commit 6a137858bf
15 changed files with 231 additions and 137 deletions
+7
View File
@@ -9,6 +9,7 @@ import { useUtils } from "../../hooks/utils";
import Medias from "../Medias";
import { useAppSelector } from "../../hooks/store";
import PhotoViewerPopup from "../PhotoViewerPopup";
import FileInfoPopup from "../FileInfoPopup";
const MainSection = memo(() => {
const moverID = useAppSelector((state) => state.mover.id);
@@ -25,6 +26,12 @@ const MainSection = memo(() => {
<PhotoViewerPopup />
) : undefined}
{selectedItem?.file &&
!selectedItem.file.metadata.isVideo &&
!selectedItem.file.metadata.hasThumbnail ? (
<FileInfoPopup />
) : undefined}
{moverID.length === 0 ? undefined : <MoverMenu />}
<div className="flex flex-row h-screen w-screen pt-16">