UNPKG

@dicebear/avataaars-neutral

Version:

Avatar style for DiceBear

36 lines (35 loc) 983 B
/** * 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/HBLdITkkTnLs4M09BmCe4h */ import { pickComponent } from './pickComponent.js'; export function getComponents({ prng, options, }) { const mouthComponent = pickComponent({ prng, group: 'mouth', values: options.mouth, }); const noseComponent = pickComponent({ prng, group: 'nose', values: options.nose, }); const eyesComponent = pickComponent({ prng, group: 'eyes', values: options.eyes, }); const eyebrowsComponent = pickComponent({ prng, group: 'eyebrows', values: options.eyebrows, }); return { mouth: mouthComponent, nose: noseComponent, eyes: eyesComponent, eyebrows: eyebrowsComponent, }; }