import type { Meta, StoryObj } from "@storybook/react-vite"; import { TeamAvatar } from "./TeamAvatar"; const meta: Meta = { title: "UI/TeamAvatar", component: TeamAvatar, parameters: { layout: "padded", }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { teamId: "team-1", teamName: "Thunder Hawks", }, }; export const Small: Story = { args: { teamId: "team-1", teamName: "Thunder Hawks", size: "sm", }, }; export const Large: Story = { args: { teamId: "team-1", teamName: "Thunder Hawks", size: "lg", }, }; export const WithLogo: Story = { args: { teamId: "team-2", teamName: "Iron Eagles", logoUrl: "https://placehold.co/48x48/1a1a2e/e0e0e0?text=IE", }, }; export const SingleWordName: Story = { args: { teamId: "team-3", teamName: "Superteam", }, }; export const AllSizes: Story = { name: "All Sizes — Side by Side", render: () => (
sm
md
lg
), };