/** @format */

import * as React from 'react';
import {Tabs, Typography} from 'antd';
import {decodeBase64} from '../../../../../utils/base64';
import InterfaceConfig from './intrefaceConfig';
import PackageConfig from './packageConfig';
const {TabPane} = Tabs;
const {Title} = Typography;
const dataApiQueryConfig: React.FC = props => {
    const name = new URLSearchParams(decodeBase64(location.search.slice(1))).get('name');
    return (
        <>
            <Title level={4}> 查询方式:{name}</Title>
            <Tabs defaultActiveKey='baseApi'>
                <TabPane tab='接口配置' key='baseApi'>
                    <InterfaceConfig />
                </TabPane>
                <TabPane tab='套餐配置' key='combo'>
                    <PackageConfig />
                </TabPane>
            </Tabs>
        </>
    );
};
export default dataApiQueryConfig;
