@hoosei/voxweave-react
Version:
A customizable and interactive voice UI component for React applications
15 lines (14 loc) • 348 B
JavaScript
import * as o from "react";
import { useLayoutEffect as a } from "./index39.js";
var s = o[" useId ".trim().toString()] || (() => {
}), f = 0;
function i(t) {
const [e, r] = o.useState(s());
return a(() => {
r((u) => u ?? String(f++));
}, [t]), t || (e ? `radix-${e}` : "");
}
export {
i as useId
};
//# sourceMappingURL=index29.js.map