// url=https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=2719-28745 // Desktop V3 import figma from "figma"; const showLegend = figma.selectedInstance.getBoolean("Show legend", { true: figma.selectedInstance.getString("Label"), false: undefined, }); const showDescription = figma.selectedInstance.getBoolean("Show description", { true: figma.selectedInstance.getString("Description"), false: undefined, }); const showSupportLink = figma.selectedInstance.getBoolean("Show support link", { true: "support-page-endpoint-example", false: undefined, }); const iconSrc = figma.selectedInstance.getBoolean("Show legend", { true: figma.selectedInstance.getBoolean("Show icon", { true: "chrome://example.svg", false: undefined, }), false: undefined, }); const children = figma.properties.children(["*"]); export default { id: "moz-fieldset-desktop-v3", example: figma.code` ${children} `, };