import React from 'react'; import Typography from 'antd/lib/typography'; import Spin from 'antd/lib/spin'; import { getSettings, startCrawlers } from './server/service'; import Button from 'antd/lib/button'; import { useThisDoc } from './doc/useDoc'; const { Title } = Typography; const load = async ( setSettings: React.Dispatch, ) => { setSettings(await getSettings()); } export const Settings = () => { const [settings, setSettings] = React.useState(); React.useEffect(() => { load(setSettings); }, []); useThisDoc(); return ( <> Settings {settings ? ( <>

Dir: {settings.dir}

) : }

); }