Repository Public License
1import PrismObjectModel2import SwiftUI34/// Routes the catalog families that live in their own files (`Components+Family<X>.swift`).5struct ExtendedComponents: View {6 let o: PrismObject7 var body: some View {8 if FamilyAComponents.types.contains(o.type) { FamilyAComponents(o: o) }9 else if FamilyBComponents.types.contains(o.type) { FamilyBComponents(o: o) }10 else if FamilyCComponents.types.contains(o.type) { FamilyCComponents(o: o) }11 else { UnknownComponent(o: o) }12 }13}14