21 lines
647 B
JavaScript
21 lines
647 B
JavaScript
/**
|
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
*
|
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
* File: https://www.figma.com/file/YHb4ShTgmO8Lqhkz1plLfL
|
|
*/
|
|
import * as components from '../components/index.js';
|
|
export function pickComponent({ prng, group, values = [] }) {
|
|
const componentCollection = components;
|
|
const key = prng.pick(values);
|
|
if (key && componentCollection[group][key]) {
|
|
return {
|
|
name: key,
|
|
value: componentCollection[group][key],
|
|
};
|
|
}
|
|
else {
|
|
return undefined;
|
|
}
|
|
}
|