open-consul/ui-v2/app/components/copy-button/chart.xstate.js

30 lines
391 B
JavaScript
Raw Normal View History

2020-06-17 09:25:54 +00:00
export default {
id: 'copy-button',
initial: 'idle',
on: {
RESET: [
{
target: 'idle',
},
],
},
states: {
idle: {
on: {
SUCCESS: [
{
target: 'success',
},
],
ERROR: [
{
target: 'error',
},
],
},
},
success: {},
error: {},
},
};