import * as React from 'react'; import { GitHub } from 'react-feather'; import { useQuery } from 'react-query'; import { fetchVersion } from '~/api/version'; import ContentHeader from '~/components/ContentHeader'; import { connect } from '~/components/StateProvider'; import { getClashAPIConfig } from '~/store/app'; import { ClashAPIConfig } from '~/types'; import s from './About.module.scss'; type Props = { apiConfig: ClashAPIConfig }; function Version({ name, link, version }: { name: string; link: string; version: string }) { return (
); } function AboutImpl(props: Props) { const { data: version } = useQuery(['/version', props.apiConfig], () => fetchVersion('/version', props.apiConfig) ); return ( <>