mirror of
https://github.com/THU-MAIC/OpenMAIC.git
synced 2026-10-19 05:49:27 +08:00
- Add .prettierignore to exclude vendor packages, lock files, markdown, and YAML - Update .prettierrc: printWidth 100, singleQuote, trailingComma "all" - Run Prettier across all source files for consistent formatting - Fix unused imports (UserRequirements, setTTSProvider) - Fix eslint-disable comment placement after Prettier reformat Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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;
|
|
}
|