import { getExtensionField } from "../helpers/get-extension-field.js";
import { callOrReturn } from "../utilities/call-or-return.js";
import { splitExtensions } from "./split-extensions.js";
function isList(name, extensions) {
  const { nodeExtensions } = splitExtensions(extensions);
  const extension = nodeExtensions.find((item) => item.name === name);
  if (!extension) {
    return false;
  }
  const context = {
    name: extension.name,
    options: extension.options,
    storage: extension.storage
  };
  const group = callOrReturn(getExtensionField(extension, "group", context));
  if (typeof group !== "string") {
    return false;
  }
  return group.split(" ").includes("list");
}
export {
  isList
};
//# sourceMappingURL=is-list.js.map
