import { getPrefab } from '.';
/**
 * Get a portal object
 * Find LevelID in the url of a world.
 * Ex: https://hiber.hiberworld.com/?Launch.InitLevelID=`1237022115291292`
 * @example
 * ```
  const prt = getPortal({ LevelID: 1237022115291292, p: [0, 0, 10] });
  addTo(root, prt);
 * ```
 */
export const getPortal = (opt) => {
    const portal = getPrefab({ id: 'gpl_portal_01', ...opt });
    // TBD: Portals currently not supported
    //
    // portal.warpPortal = {
    //   targetLevelID: String(opt.LevelID),
    //   targetURL: '',
    //   ...opt,
    // };
    return portal;
};
//# sourceMappingURL=getPortal.js.map