@hoosei/voxweave-react
Version:
A customizable and interactive voice UI component for React applications
47 lines (46 loc) • 2.12 kB
JavaScript
import { cn as v } from "./index8.js";
import { Button as r } from "./index6.js";
import { jsx as e, jsxs as o } from "react/jsx-runtime";
function d({
onAccept: t,
onCancel: i,
privacyPolicyUrl: a = "#",
companyName: n = "our service",
className: x
}) {
return /* @__PURE__ */ e("div", {
className: "vox:fixed vox:inset-0 vox:bg-black/50 vox:flex vox:items-center vox:justify-center vox:z-50",
children: /* @__PURE__ */ o("div", {
className: v("vox:bg-gray-900 vox:text-gray-200 vox:p-8 vox:rounded-2xl vox:max-w-2xl vox:mx-4 vox:shadow-xl", x),
children: [/* @__PURE__ */ e("h2", {
className: "vox:text-3xl vox:font-semibold vox:mb-6",
children: "Terms and conditions"
}), /* @__PURE__ */ o("p", {
className: "vox:text-gray-300 vox:text-lg vox:leading-relaxed vox:mb-8",
children: ['By clicking "Agree," and each time I interact with this AI agent, I consent to ', n, " collecting and using my voice and data derived from it to interpret my speech, and provide the support services I request, and to the recording, storage, and sharing of my communications with third-party service providers, and as described in the", " ", /* @__PURE__ */ e("a", {
href: a,
className: "vox:text-blue-400 hover:vox:text-blue-300 vox:underline",
target: "_blank",
rel: "noopener noreferrer",
children: "Privacy Policy"
}), ". If you do not wish to have your conversations recorded, please refrain from using this service."]
}), /* @__PURE__ */ o("div", {
className: "vox:flex vox:justify-end vox:gap-4",
children: [/* @__PURE__ */ e(r, {
variant: "outline",
onClick: i,
className: "vox:bg-gray-800 hover:vox:bg-gray-700 vox:text-gray-200 vox:border-gray-700",
children: "Cancel"
}), /* @__PURE__ */ e(r, {
onClick: t,
className: "vox:bg-blue-600 hover:vox:bg-blue-500 vox:text-white",
children: "Agree"
})]
})]
})
});
}
export {
d as PrivacyDialog
};
//# sourceMappingURL=index9.js.map