mirror of https://github.com/hashicorp/consul
35 lines
470 B
JavaScript
35 lines
470 B
JavaScript
|
/**
|
||
|
* Copyright (c) HashiCorp, Inc.
|
||
|
* SPDX-License-Identifier: BUSL-1.1
|
||
|
*/
|
||
|
|
||
|
export default {
|
||
|
id: 'copy-button',
|
||
|
initial: 'idle',
|
||
|
on: {
|
||
|
RESET: [
|
||
|
{
|
||
|
target: 'idle',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
states: {
|
||
|
idle: {
|
||
|
on: {
|
||
|
SUCCESS: [
|
||
|
{
|
||
|
target: 'success',
|
||
|
},
|
||
|
],
|
||
|
ERROR: [
|
||
|
{
|
||
|
target: 'error',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
success: {},
|
||
|
error: {},
|
||
|
},
|
||
|
};
|