mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Add GitSettingsDialog
This commit is contained in:
9 files changed
+775
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user