|
|
@ -1,6 +1,6 @@ |
|
|
|
import { adjectives, animals, starWars, uniqueNamesGenerator } from 'unique-names-generator' |
|
|
|
export const generateUniqueName = async () => { |
|
|
|
|
|
|
|
const { adjectives, animals, starWars, uniqueNamesGenerator } = await import('unique-names-generator') |
|
|
|
|
|
|
|
|
|
|
|
export const generateUniqueName = () => { |
|
|
|
|
|
|
|
return uniqueNamesGenerator({ |
|
|
|
return uniqueNamesGenerator({ |
|
|
|
dictionaries: [[starWars], [adjectives, animals]][Math.floor(Math.random() * 2)], |
|
|
|
dictionaries: [[starWars], [adjectives, animals]][Math.floor(Math.random() * 2)], |
|
|
|
}) |
|
|
|
}) |
|
|
|