mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
11 lines
329 B
TypeScript
11 lines
329 B
TypeScript
import { useContext } from 'react';
|
|
import { DeploySettingsContext } from '@/contexts/DeploySettingsContext';
|
|
|
|
export function useDeploySettings() {
|
|
const context = useContext(DeploySettingsContext);
|
|
if (!context) {
|
|
throw new Error('useDeploySettings must be used within DeploySettingsProvider');
|
|
}
|
|
return context;
|
|
}
|