simplify tools imports

This commit is contained in:
Gavin McDonald
2025-07-04 14:18:38 -04:00
parent c6e316a1f8
commit b4b0c853f1
14 changed files with 29 additions and 26 deletions

View File

@@ -1,9 +1,7 @@
import getRandomItems from '@/tools/getRandomItems';
import { getRandomItems } from '@/tools';
const alphabet = '0123456789abcdefghijklmnopqrstuvwxyz';
const generateID = (length: number = 6) => {
export const generateID = (length: number = 6) => {
return getRandomItems(alphabet.split(''), length).join('');
};
export default generateID;