mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 11:33:02 +00:00
refactor: deep link for faq
This commit is contained in:
20
src/faq/FAQPages.tsx
Normal file
20
src/faq/FAQPages.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { ComponentType } from 'react';
|
||||
import { QQMusicFAQ } from './QQMusicFAQ';
|
||||
import { KuwoFAQ } from './KuwoFAQ';
|
||||
import { KugouFAQ } from './KugouFAQ';
|
||||
import { OtherFAQ } from './OtherFAQ';
|
||||
import { AndroidEmulatorFAQ } from './AndroidEmulatorFAQ';
|
||||
|
||||
export type FAQEntry = {
|
||||
id: string;
|
||||
name: string;
|
||||
Component: ComponentType;
|
||||
};
|
||||
|
||||
export const FAQ_PAGES: FAQEntry[] = [
|
||||
{ id: 'qqmusic', name: 'QQ 音乐', Component: QQMusicFAQ },
|
||||
{ id: 'kuwo', name: '酷我音乐', Component: KuwoFAQ },
|
||||
{ id: 'kugou', name: '酷狗音乐', Component: KugouFAQ },
|
||||
{ id: 'android-emu', name: '安卓模拟器', Component: AndroidEmulatorFAQ },
|
||||
{ id: 'other', name: '其它问题', Component: OtherFAQ },
|
||||
];
|
||||
Reference in New Issue
Block a user