// url=https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=4429-687
// Desktop V3
import figma from "figma";
const vibrant = figma.selectedInstance.getBoolean("Vibrant");
const body = figma.selectedInstance.getString("Body");
const heading = figma.selectedInstance.getBoolean("Show heading", {
true: figma.selectedInstance.getString("Heading"),
false: undefined,
});
const image = figma.selectedInstance.getBoolean("Show image", {
true: "path/to/image.png",
false: undefined,
});
const imageAlignment = figma.selectedInstance.getBoolean("Show image", {
true: figma.selectedInstance.getEnum("Image position", {
Left: "start",
Right: "end",
Bottom: "center",
}),
false: undefined,
});
const actions = figma.selectedInstance.getBoolean("Show actions", {
true: '\n Label\n \n ',
false: undefined,
});
export default {
id: "promo-desktop-v3",
example: figma.code`
${actions ?? ""}
`,
};