open-consul/ui/packages/consul-ui/app/machines/boolean.xstate.js
2022-02-08 19:24:50 +00:00

35 lines
482 B
JavaScript

export default {
id: 'boolean',
initial: 'false',
states: {
true: {
on: {
TOGGLE: [
{
target: 'false',
},
],
FALSE: [
{
target: 'false',
},
],
},
},
false: {
on: {
TOGGLE: [
{
target: 'true',
},
],
TRUE: [
{
target: 'true',
},
],
},
},
},
};