feat: improve admin panel (#14180)

This commit is contained in:
DarkSky
2025-12-30 05:22:54 +08:00
committed by GitHub
parent d6b380aee5
commit 95a5e941e7
94 changed files with 3146 additions and 1114 deletions
@@ -1,7 +1,9 @@
import {
createContext,
type Dispatch,
type ReactNode,
type RefObject,
type SetStateAction,
useContext,
} from 'react';
import type { ImperativePanelHandle } from 'react-resizable-panels';
@@ -15,9 +17,14 @@ export type SinglePanelContextType = {
closePanel: () => void;
};
export type RightPanelContextType = SinglePanelContextType & {
hasDirtyChanges: boolean;
setHasDirtyChanges: Dispatch<SetStateAction<boolean>>;
};
export interface PanelContextType {
leftPanel: SinglePanelContextType;
rightPanel: SinglePanelContextType;
rightPanel: RightPanelContextType;
}
export type ResizablePanelProps = {