import React from 'react';
import { useTeleporterStore } from '../../../../stores/teleporterStore';
export const TeleportSource = ({ targetId, location, children }) => {
    const getTeleporter = useTeleporterStore((state) => state.getTeleporter);
    const Teleporter = getTeleporter(targetId, location).Source;
    return React.createElement(Teleporter, { children: children });
};
//# sourceMappingURL=TeleporterSource.js.map