import * as React from 'react';
import {
    EditableDocContent, DocExample, BaseDocsBlock, UUI4, UUI3,
} from '../common';

export class AnchorDoc extends BaseDocsBlock {
    title = 'Anchor';
    getPropsDocPath() {
        return {
            [UUI4]: './app/src/docs/_props/epam-promo/components/navigation/anchor.props.tsx',
            [UUI3]: './app/src/docs/_props/loveship/components/navigation/anchor.props.tsx',
        };
    }

    renderContent() {
        return (
            <>
                <EditableDocContent fileName="anchor-descriptions" />
                {this.renderSectionTitle('Examples')}
                <DocExample title="With block nodes" path="./_examples/anchor/Basic.example.tsx" />
                <DocExample title="In text" path="./_examples/anchor/AnchorInText.example.tsx" />
            </>
        );
    }
}
