import { useEffect } from "react"; export function useGitDiffPanelEffects(load: () => Promise): void { useEffect(() => { void load(); }, [load]); }