Something went wrong. Try again.
Self-hosted file management and sharing system, supports multiple storage providers. forked from tdvorak.tngl.sh/cloudreve
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536import { Dialog, Slide } from "@mui/material";import { TransitionProps } from "@mui/material/transitions";import { forwardRef } from "react";import { closeShareReadme } from "../../../redux/globalStateSlice.ts";import { useAppDispatch, useAppSelector } from "../../../redux/hooks.ts";import ReadMeContent from "./ReadMeContent.tsx";
const Transition = forwardRef(function Transition( props: TransitionProps & { children: React.ReactElement<unknown>; }, ref: React.Ref<unknown>,) { return <Slide direction="up" ref={ref} {...props} />;});
const ReadMeDialog = () => { const dispatch = useAppDispatch(); const readMeOpen = useAppSelector((state) => state.globalState.shareReadmeOpen);
return ( <Dialog fullScreen TransitionComponent={Transition} open={!!readMeOpen} onClose={() => { dispatch(closeShareReadme()); }} > <ReadMeContent /> </Dialog> );};
export default ReadMeDialog;