Files
threshold-ui/addons/rose/addon/utilities/component-auto-id.js
T
Carlos Alcaide Corvo 443f230251 refactor: 💡 Migrate ember-uuid to uuid (#2597)
* refactor: 💡 Migrate ember-uuid to uuid
2024-12-02 11:36:25 -08:00

15 lines
281 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { v4 as uuidv4 } from 'uuid';
/**
* A function that generates a component ID, based on UUID.
* @return {string}
*/
export function generateComponentID() {
return `component-${uuidv4()}`;
}