/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ import React from "react"; /** * Renders the /
children shared by the panel-list-based * context menus. Callers own the wrapping element and its * open/close lifecycle (this only renders items). * * @param options Built LinkMenuOptions entries (see getLinkMenuOptions). */ export function PanelListItems({ options }) { return options.map((option, i) => option.type === "separator" ? (
) : ( option.type !== "empty" && ( ) ) ); }