import * as React from "react";
import { times, random } from "lodash";
import generate from "./";

export const getRadioItems = (
    staticIds: boolean = false,
    numItems: number = 5
): RadioItem[] => {
    return times(numItems, i => {
        return {
            id: staticIds ? i : generate.genId(),
            name: staticIds ? i : generate.genInputName(),
        } as RadioItem;
    });
};
