import { useMemo, type ComponentProps } from "react"; import { StudioLeftPanels } from "../components/StudioLeftPanels"; import { StudioRightPanels } from "../components/StudioRightPanels"; import { useStableHandlers } from "./useStableHandlers"; /** Both side panels as one element that changes only when a panel's data does, never for a new handler. */ export function useStudioSidePanels( left: ComponentProps, right: ComponentProps, projectId: string | null, ) { const stableLeft = useStableHandlers(left, projectId); const stableRight = useStableHandlers(right, projectId); return useMemo( () => ( <> ), [stableLeft, stableRight], ); }