Add GitSettingsDialog

This commit is contained in:
Alex Gleason committed 2025-09-13 12:01:46 -05:00
1 parent ddf09c6684
commit 81b0571b3e
9 files changed
+775 -3

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { useContext } from 'react';
import { GitSettingsContext, type GitSettingsContextType } from '@/contexts/GitSettingsContext';
/**
* Hook to access and update Git settings
* @returns Git settings context with settings and update methods
*/
export function useGitSettings(): GitSettingsContextType {
const context = useContext(GitSettingsContext);
if (!context) {
throw new Error('useGitSettings must be used within GitSettingsProvider');
}
return context;
}