2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2020-09-24 14:47:45 -04:00
|
|
|
import { v1 } from 'ember-uuid';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A function that generates a component ID, based on UUID.
|
|
|
|
|
* @return {string}
|
|
|
|
|
*/
|
|
|
|
|
export function generateComponentID() {
|
|
|
|
|
return `component-${v1()}`;
|
|
|
|
|
}
|