15 lines
240 B
TypeScript
15 lines
240 B
TypeScript
"use client"
|
|
|
|
import { useEffect } from "react"
|
|
import { useStore } from "@/lib/store"
|
|
|
|
export function ConfigLoader() {
|
|
const { fetchSettings } = useStore()
|
|
|
|
useEffect(() => {
|
|
fetchSettings()
|
|
}, [fetchSettings])
|
|
|
|
return null
|
|
}
|