29 lines
617 B
TypeScript
29 lines
617 B
TypeScript
|
|
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||
|
|
import { Trophy } from "lucide-react";
|
||
|
|
import { ReviewSection } from "./ReviewSection";
|
||
|
|
|
||
|
|
const meta: Meta<typeof ReviewSection> = {
|
||
|
|
title: "League/ReviewSection",
|
||
|
|
component: ReviewSection,
|
||
|
|
parameters: { layout: "centered" },
|
||
|
|
args: {
|
||
|
|
icon: Trophy,
|
||
|
|
title: "Sports",
|
||
|
|
onEdit: () => {},
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default meta;
|
||
|
|
type Story = StoryObj<typeof ReviewSection>;
|
||
|
|
|
||
|
|
export const Default: Story = {
|
||
|
|
args: {
|
||
|
|
children: (
|
||
|
|
<ul className="space-y-1 text-sm">
|
||
|
|
<li>NBA 2025</li>
|
||
|
|
<li>NFL 2025</li>
|
||
|
|
</ul>
|
||
|
|
),
|
||
|
|
},
|
||
|
|
};
|