mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-31 20:00:00 -05:00
11 lines
378 B
TypeScript
11 lines
378 B
TypeScript
import { useSettings } from '@/contexts/SettingsContext';
|
|
|
|
/**
|
|
* Hook that provides access to settings data via SettingsContext.
|
|
* This hook is a thin wrapper around useSettings to maintain backward compatibility.
|
|
* The actual data fetching happens once in SettingsProvider, avoiding duplicate API calls.
|
|
*/
|
|
export const useSettingsData = () => {
|
|
return useSettings();
|
|
};
|