import { For, List, code } from "@alloy-js/core"; import { InterfaceDeclaration, InterfaceMember, VarDeclaration, } from "@alloy-js/typescript"; import { XmlAttribute, XmlSchema } from "../collect-schemas.js"; export function XmlComponent(props: { schema: XmlSchema }) { return ( {([attrName, attr]) => ( )} ); } function XmlComponentFunction(props: { schema: XmlSchema }) { return ( {code`makeTag<${props.schema.tagName}Props>("${props.schema.tagName}")`} ); } function XmlComponentPropsAttribute(props: { attrName: string; attr: XmlAttribute; }) { return ( ); } function mapXsdTypeToTs(type: string | undefined) { switch (type) { case "xs:string": case "msb:string": return "string"; case "xs:int": case "msb:int": return "number"; case "xs:boolean": case "msb:boolean": return "boolean"; case undefined: return "unknown"; default: return `unknown /* ${type} */`; } }