import React from "react";
export const SelectGroup = ({ setValue, options, label, id, layout, }) => {
    return (React.createElement("span", { className: layout === "stacked"
            ? "on-select-wrapper stacked"
            : "on-select-wrapper" },
        label && React.createElement("label", { htmlFor: id }, label),
        React.createElement("select", { className: "on-select", onChange: (e) => setValue(e.target.value), id: id }, options.map((item, index) => (React.createElement("option", { key: index, label: item.label, value: item.value }))))));
};
