'use strict';

const formatPill = (data) => {
    if (!data)
        return {};
    return {
        id: data.id,
        name: data.name || '',
        icon: data.fruit_icon || '',
    };
};

exports.formatPill = formatPill;
