import { Mesh, Object3D } from 'three'; export function resolveJsxTree(parent: Object3D) { return parent.children.map((child) => { if (child.type === 'Mesh') { return ( ); } if (child.type === 'Object3D') { return ( ); } throw new TypeError( `Unhandled three jsx type ${child.type} (${child.name})`, ); }); }