import { j as o } from "./index.es36.js";
import { useState as s, useMemo as u, useEffect as a } from "react";
const l = (t) => {
  const [n, c] = s(), r = u(() => {
    const e = new Blob([n], { type: "text/plain" });
    return URL.createObjectURL(e);
  }, [n]);
  return a(() => {
    fetch(t.src).then((e) => e.text()).then(c);
  }, [t.src]), r ? /* @__PURE__ */ o.jsx(
    "track",
    {
      ...t,
      src: r
    }
  ) : null;
};
export {
  l as default
};
//# sourceMappingURL=index.es9.js.map
