import React, { useContext } from "react";
import {
Page,
PageHeader,
PageHeaderTools,
PageHeaderToolsItem,
} from "@patternfly/react-core";
import { Meta } from "@storybook/react/types-6-0";
import {
Help,
HelpContext,
HelpHeader,
} from "../components/help-enabler/HelpHeader";
export default {
title: "Help System Example",
component: HelpHeader,
} as Meta;
export const HelpSystem = () => {
return (
);
};
const HelpSystemTest = () => {
const { enabled } = useContext(HelpContext);
return (
dummy user...
}
/>
}
>
Help system is {enabled ? "enabled" : "not on, guess you don't need help"}
);
};