import React from "react";
import { Toaster } from "react-hot-toast";
import { Unstyled } from "@storybook/blocks";
import {
Box,
Heading,
Text,
Stack,
Link,
Divider,
ORIENTATION,
Icon,
ICON_TYPE,
} from "..";
interface ComponentHeadingProps {
componentName: string;
description: string;
sourcePath?: string;
waiAriaPath?: string;
hideDemosLink?: boolean;
figmaLink?: string;
}
// change this when changing from main/alpha/beta branches
const CURRENT_BRANCH = "main";
export const ComponentHeading = ({
componentName,
description,
sourcePath,
waiAriaPath,
hideDemosLink = false,
figmaLink,
}: ComponentHeadingProps) => {
return (
<>
{componentName}
{description}
API
{!hideDemosLink && (
<>
Demos
>
)}
{sourcePath && (
<>
Source
>
)}
{figmaLink && (
<>
Figma
>
)}
{waiAriaPath && (
<>
WAI-ARIA Pattern
>
)}
>
);
};