mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2025-05-23 16:27:41 +08:00
- add toc for faq page - fix #79: add note about oem build - add plat form specific instructions for qqmusic faq
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
import { Flex, Icon, ListItem, OrderedList, Tabs, Text } from '@chakra-ui/react';
|
||
import { SegmentTopNavSettings } from './SegmentTopNavSettings';
|
||
import { VQuote } from '~/components/HelpText/VQuote';
|
||
import { SegmentAddKeyDropdown } from './SegmentAddKeyDropdown';
|
||
import React from 'react';
|
||
import { MdFileUpload } from 'react-icons/md';
|
||
|
||
export interface SegmentKeyImportInstructionsProps {
|
||
clientInstructions: React.ReactNode;
|
||
tab: string;
|
||
keyInstructionText?: React.ReactNode;
|
||
}
|
||
|
||
export function SegmentKeyImportInstructions({
|
||
clientInstructions,
|
||
tab,
|
||
keyInstructionText = '选择你的客户端平台来查看密钥提取说明:',
|
||
}: SegmentKeyImportInstructionsProps) {
|
||
return (
|
||
<>
|
||
<Text>导入密钥可以参考下面的步骤:</Text>
|
||
<OrderedList>
|
||
<ListItem>
|
||
<SegmentTopNavSettings />
|
||
</ListItem>
|
||
<ListItem>
|
||
设定区域选择<VQuote>{tab}</VQuote>
|
||
</ListItem>
|
||
<ListItem>
|
||
<SegmentAddKeyDropdown />
|
||
</ListItem>
|
||
<ListItem>
|
||
<Flex flexDir="row" alignItems="center">
|
||
{'选择 '}
|
||
<VQuote>
|
||
<Icon as={MdFileUpload} boxSize={5} mr={2} /> 从文件导入密钥…
|
||
</VQuote>
|
||
</Flex>
|
||
</ListItem>
|
||
<ListItem>
|
||
<Text>{keyInstructionText}</Text>
|
||
<Tabs display="flex" flexDir="column" border="1px solid" borderColor="gray.300" borderRadius={5}>
|
||
{clientInstructions}
|
||
</Tabs>
|
||
</ListItem>
|
||
</OrderedList>
|
||
</>
|
||
);
|
||
}
|