use super::{FeatureInfo, Workbench, WorkbenchButton};
fn includes(feature: &FeatureInfo<'_>) -> bool {
feature.type_code.starts_with("SM.") || matches!(feature.type_code, "S" | "D" | "P")
}
static BUTTONS: &[WorkbenchButton] = &[WorkbenchButton {
id: "sheetmetal.flat_pattern",
glyph: "\u{25A4}",
ribbon_path: "Home/Sheet Metal/Export flat pattern", size: crate::workbench::CommandSize::Compact, tooltip: "Export flat pattern (DXF / SVG)",
when: None,
pressed: None,
disabled: None,
caption: None,
menu: &[],
}];
static PANELS: &[&str] = &[];
pub static SHEET_METAL: Workbench = Workbench {
id: "sheetMetal",
label: "Sheet Metal",
glyph: "\u{E062}",
includes,
buttons: BUTTONS,
panels: PANELS,
};