Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

822 B
Raw Blame
import type { Meta, StoryObj } from "@storybook/react-vite";
import { WithOrgOwner } from "@processor/test/WithOrgOwner";
import { LinkAccountFooterItem } from "@processor/components/LinkAccountFooterItem";

const meta: Meta<typeof LinkAccountFooterItem> = {
  title: "Portal/LinkAccountFooterItem",
  component: LinkAccountFooterItem,
  decorators: [WithOrgOwner],
  parameters: { layout: "padded" },
};
export default meta;
type Story = StoryObj<typeof meta>;

/** Unlinked org — the "Link Stirling account" CTA appears in the sidebar footer. */
export const Unlinked: Story = {
  globals: { linkState: "unlinked" },
};

/** Linked org — the CTA hides itself (renders nothing), since the state is
 * already communicated elsewhere. */
export const Linked: Story = {
  globals: { linkState: "linked-subscribed" },
};