Skip to content

Commit

Permalink
robot-summary
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Dec 5, 2024
1 parent cfe5bab commit 28ac7a4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Meta, StoryObj } from '@storybook/react';

import { ApiServerModelsRmfApiRobotStateStatus as Status } from 'api-client';
import { RobotSummary } from './robot-summary';

export default {
title: 'Robots/RobotSummary',
component: RobotSummary,
} satisfies Meta;

type Story = StoryObj<typeof RobotSummary>;

export const Default: Story = {
args: {
onClose: () => {},
robot: {
fleet: 'test_fleet',
name: 'test_robot',
status: Status.Idle,
battery: 60,
estFinishTime: 1000000,
lastUpdateTime: 900000,
level: 'L1',
commission: {
dispatch_tasks: true,
direct_tasks: true,
idle_behavior: true,
},
},
},
};
Empty file.

0 comments on commit 28ac7a4

Please sign in to comment.