import React from "react";
import { Meta, StoryFn } from "@storybook/react";
import { CommunityListItem, CommunityListItemProps } from "./CommunityListItem";

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

const Template: StoryFn<CommunityListItemProps> = (args) => (
  <CommunityListItem {...args} />
);

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

Default.args = {
  title: "Cool club",
  imageUrl: "images/avatar.jpeg",
  subtext: "Last active 3 minutes ago",
  navRoute: "#",
};
