fix: move lucide related constants to ui package (#7226)

* fix: move lucide related constants to ui package

* chore: update yarn.lock
This commit is contained in:
Prateek Shourya 2025-06-17 17:06:05 +05:30 committed by GitHub
parent 75f89c4c12
commit 53e6a62a12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 37 additions and 31 deletions

View file

@ -1,7 +1,7 @@
"use client";
// plane imports
import { LUCIDE_ICONS_LIST, RANDOM_EMOJI_CODES } from "@plane/constants";
import { RANDOM_EMOJI_CODES } from "@plane/constants";
/**
* Converts a hyphen-separated hexadecimal emoji code to its decimal representation
@ -83,9 +83,3 @@ export const groupReactions: (reactions: any[], key: string) => { [key: string]:
* @returns {string} A random emoji code
*/
export const getRandomEmoji = (): string => RANDOM_EMOJI_CODES[Math.floor(Math.random() * RANDOM_EMOJI_CODES.length)];
/**
* Returns a random icon name from the LUCIDE_ICONS_LIST array
*/
export const getRandomIconName = (): string =>
LUCIDE_ICONS_LIST[Math.floor(Math.random() * LUCIDE_ICONS_LIST.length)].name;