19 lines
476 B
TypeScript
19 lines
476 B
TypeScript
'use client';
|
|
|
|
import { useEffect } from 'react';
|
|
import { useSettingsStore } from '@/lib/store/settings';
|
|
|
|
/**
|
|
* Fetches server-configured providers on mount and merges into settings store.
|
|
* Renders nothing — purely a side-effect component.
|
|
*/
|
|
export function ServerProvidersInit() {
|
|
const fetchServerProviders = useSettingsStore((state) => state.fetchServerProviders);
|
|
|
|
useEffect(() => {
|
|
fetchServerProviders();
|
|
}, [fetchServerProviders]);
|
|
|
|
return null;
|
|
}
|