import * as React from 'react'; import { GitHub } from '~/components/shared/FeatherIcons'; import ContentHeader from '~/components/ContentHeader'; import { useAboutVersionQuery } from '~/modules/about/hooks'; import { getCoreVersionMeta } from '~/modules/about/utils'; 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 (
); } export function About({ apiConfig }: Props) { const { data: version } = useAboutVersionQuery(apiConfig); const coreVersionMeta = getCoreVersionMeta(version); return ( <>