import React, { Component } from 'react'
import { Space, Typography } from 'antd'
import Highlighter from 'pages/system/doc/highlighter'

const { Text } = Typography

export default class usage extends Component {
    render() {
        return (
            <Space direction="vertical" className="w-100-p">
                <Text>调用时需先引入。</Text>
                <Text>接口的函数名对应到上面配置的接口名称即可。</Text>
                <Highlighter code={this.props.codes['api/usage.js']} language="javascript" />
            </Space>
        )
    }
}
