mirror of
https://github.com/coder/coder.git
synced 2026-11-19 18:51:12 +08:00
44 lines
846 B
TypeScript
44 lines
846 B
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import { MockWorkspaceAgent, MockWorkspaceApp } from "testHelpers/entities";
|
|
import { AgentRowPreview } from "./AgentRowPreview";
|
|
|
|
const meta: Meta<typeof AgentRowPreview> = {
|
|
title: "modules/resources/AgentRowPreview",
|
|
component: AgentRowPreview,
|
|
args: {
|
|
agent: MockWorkspaceAgent,
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof AgentRowPreview>;
|
|
|
|
export const Example: Story = {};
|
|
|
|
export const BunchOfApps: Story = {
|
|
args: {
|
|
agent: {
|
|
...MockWorkspaceAgent,
|
|
apps: [
|
|
MockWorkspaceApp,
|
|
MockWorkspaceApp,
|
|
MockWorkspaceApp,
|
|
MockWorkspaceApp,
|
|
MockWorkspaceApp,
|
|
MockWorkspaceApp,
|
|
MockWorkspaceApp,
|
|
MockWorkspaceApp,
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
export const NoApps: Story = {
|
|
args: {
|
|
agent: {
|
|
...MockWorkspaceAgent,
|
|
apps: [],
|
|
},
|
|
},
|
|
};
|