File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
site/src/components/TemplateStats Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { Story } from "@storybook/react"
2
+ import React from "react"
3
+ import * as Mocks from "../../testHelpers/renderHelpers"
4
+ import { TemplateStats , TemplateStatsProps } from "../TemplateStats/TemplateStats"
5
+
6
+ export default {
7
+ title : "components/TemplateStats" ,
8
+ component : TemplateStats ,
9
+ }
10
+
11
+ const Template : Story < TemplateStatsProps > = ( args ) => < TemplateStats { ...args } />
12
+
13
+ export const Example = Template . bind ( { } )
14
+ Example . args = {
15
+ template : Mocks . MockTemplate ,
16
+ activeVersion : Mocks . MockTemplateVersion ,
17
+ }
18
+
19
+ export const UsedByMany = Template . bind ( { } )
20
+ UsedByMany . args = {
21
+ template : {
22
+ ...Mocks . MockTemplate ,
23
+ workspace_owner_count : 15 ,
24
+ } ,
25
+ activeVersion : Mocks . MockTemplateVersion ,
26
+ }
You can’t perform that action at this time.
0 commit comments