import React, { useMemo } from 'react' import { Card, Link, Spacer, useTheme } from 'components' import AttributesTitle from './attributes-title' export interface AttributesProps { edit: string } const Attributes: React.FC> = React.memo(({ edit, children, }) => { const theme = useTheme() const link = useMemo(() => { return `https://github.com/zeit-ui/react/blob/master${edit || '/pages'}` }, []) return ( <>

Attributes

{children} Edit this page on GitHub ) }) type AttributesComponent

= React.FC

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