import React from "react";
import { Meta, StoryFn } from "@storybook/react";
import { BackButton, BackButtonProps } from "./BackButton";

export default {
  title: "Molecules/BackButton",
  component: BackButton,
} as Meta;

const Template: StoryFn<BackButtonProps> = (args) => <BackButton {...args} />;

export const Default = Template.bind({});

Default.args = {
  text: "Back to Resources",
};

export const NoText = Template.bind({});

NoText.args = {};
