import React from "react";
import { Meta, StoryFn } from "@storybook/react";
import { Resource, ResourceProps } from "./Resource";

export default {
  title: "Organisms/Resource",
  component: Resource,
} as Meta;

const Template: StoryFn<ResourceProps> = (args) => <Resource {...args} />;

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

Default.args = {
  id: "384872323-32343-324324-32424324",
  title: "A practitioner’s guide to starting your own practice",
  content: "some long content",
  viewsCount: 125,
  commentsCount: 10,
  tags: [ "Tag", "tag 2", "tag 3" ],
  userName: "John Doe",
  profileImage: "images/avatar.jpeg",
  subheader: "2 months ago"
};
