File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Divider from 'ink-divider'
33import SelectInput from 'ink-select-input'
44import React , { useState , type FC } from 'react'
55
6- type Installation = 'full' | 'custom'
6+ export type Installation = 'full' | 'custom'
77
88export interface Item {
99 label : string
@@ -15,6 +15,17 @@ interface Props {
1515 onSelect : ( item : Item ) => void
1616}
1717
18+ const installationTypeItems : Array < Item > = [
19+ {
20+ label : 'Full' ,
21+ value : 'full' ,
22+ } ,
23+ {
24+ label : 'Custom' ,
25+ value : 'custom' ,
26+ } ,
27+ ]
28+
1829const Step3 : FC < Props > = ( { onCompletion, onSelect } ) => {
1930 const [ isFocused , setIsFocused ] = useState ( true )
2031
@@ -24,17 +35,6 @@ const Step3: FC<Props> = ({ onCompletion, onSelect }) => {
2435 setIsFocused ( false )
2536 }
2637
27- const items : Array < Item > = [
28- {
29- label : 'Full' ,
30- value : 'full' ,
31- } ,
32- {
33- label : 'Custom' ,
34- value : 'custom' ,
35- } ,
36- ]
37-
3838 return (
3939 < >
4040 < Divider
@@ -56,7 +56,7 @@ const Step3: FC<Props> = ({ onCompletion, onSelect }) => {
5656 </ Text >
5757 ) }
5858 isFocused = { isFocused }
59- items = { items }
59+ items = { installationTypeItems }
6060 onSelect = { handleSelect }
6161 />
6262 </ >
You can’t perform that action at this time.
0 commit comments