-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
955c629
commit 21941e7
Showing
2 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
opentrons-ai-client/src/molecules/PromptPreview/PromptPreview.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { I18nextProvider } from 'react-i18next' | ||
import { COLORS, Flex, SPACING } from '@opentrons/components' | ||
import { i18n } from '../../i18n' | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import { PromptPreview } from '.' | ||
|
||
const meta: Meta<typeof PromptPreview> = { | ||
title: 'AI/molecules/PromptPreview', | ||
component: PromptPreview, | ||
decorators: [ | ||
Story => ( | ||
<I18nextProvider i18n={i18n}> | ||
<Flex backgroundColor={COLORS.grey10} padding={SPACING.spacing40}> | ||
<Story /> | ||
</Flex> | ||
</I18nextProvider> | ||
), | ||
], | ||
} | ||
export default meta | ||
type Story = StoryObj<typeof PromptPreview> | ||
|
||
export const PromptPreviewExample: Story = { | ||
args: { | ||
isSubmitButtonEnabled: false, | ||
promptPreviewData: [ | ||
{ | ||
title: 'Application', | ||
items: [ | ||
'Cherrypicking', | ||
'I have a Chlorine Reagent Set (Total), Ultra Low Range...', | ||
], | ||
}, | ||
{ | ||
title: 'Instruments', | ||
items: [ | ||
'Opentrons Flex', | ||
'Flex 1-Channel 50 uL', | ||
'Flex 8-Channel 1000 uL', | ||
], | ||
}, | ||
{ | ||
title: 'Modules', | ||
items: [ | ||
'Thermocycler GEN2', | ||
'Heater-Shaker with Universal Flat Adaptor', | ||
], | ||
}, | ||
{ | ||
title: 'Labware and Liquids', | ||
items: [ | ||
'Opentrons 96 Well Plate', | ||
'Thermocycler GEN2', | ||
'Opentrons 96 Deep Well Plate', | ||
'Liquid 1: These are my samples, the...', | ||
'Liquid 2: This is the reagent in my ...', | ||
], | ||
}, | ||
{ | ||
title: 'Steps', | ||
items: ['Fill the first column of a Elisa...'], | ||
}, | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters