import React from "react"; import { Box, Heading, Text, Stack, Link, IntegrationLogo, Divider, ORIENTATION, } from ".."; interface ComponentHeadingProps { componentName: string; description: string; sourcePath?: string; waiAriaPath?: string; hideDemosLink?: boolean; } // change this when changing from master/alpha/beta branches const CURRENT_BRANCH = "master"; export const ComponentHeading = ({ componentName, description, sourcePath, waiAriaPath, hideDemosLink = false, }: ComponentHeadingProps) => { return ( {componentName} {description} Props {!hideDemosLink && ( <> Demos )} {sourcePath && ( <> Source )} {waiAriaPath && ( <> WAI-ARIA Pattern )} ); };