import React from 'react' import { Card, Spacer, useTheme } from 'components' import AttributesTitle from './attributes-title' import VirtualAnchor from 'lib/components/anchor' import { useConfigs } from '../../config-context' import Contributors from './contributors' export interface AttributesProps { edit: string } const Attributes: React.FC> = React.memo( ({ edit, children }) => { const theme = useTheme() const { isChinese } = useConfigs() const path = edit.replace('/pages', 'pages') return ( <>

APIs {isChinese && ' / 接口文档'}

{children}

{isChinese ? '文档贡献者' : 'Contributors'}

) }, ) type AttributesComponent

= React.FC

& { Title: typeof AttributesTitle } export default Attributes as AttributesComponent