import InputNumber from "../../components/InputNumber"; import InputText from "../../components/InputText"; import { RepeatScript } from "../types/script"; import { BaseState } from "./BaseState"; export default class ScriptRepeatState extends BaseState { defaultState = () => ({ alias: "Repeat", repeat: { count: 1, sequence: [], } }) isReady(state: RepeatScript): boolean { return state.alias !== '' && state?.repeat?.sequence.length > 0 } renderOptionList(state: RepeatScript): JSX.Element { return
this.setState({...state, alias})} /> this.setState({...state, repeat: {...state.repeat, count}})} />
{JSON.stringify(state?.repeat?.sequence)}
} }