2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
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: {},
|
|
|
|
},
|
|
|
|
};
|