import { Box } from "@mui/material"; import { useTranslation } from "react-i18next"; import { FileResponse } from "../../../api/explorer.ts"; import useActionDisplayOpt from "../ContextMenu/useActionDisplayOpt.ts"; import Details from "./Details.tsx"; import Header from "./Header.tsx"; export interface SidebarContentProps { target: FileResponse | undefined | null; inPhotoViewer?: boolean; setTarget: (target: FileResponse | undefined | null) => void; } interface TabPanelProps { children?: React.ReactNode; index: number; value: number; } function TabPanel(props: TabPanelProps) { const { children, value, index, ...other } = props; return (