@hoosei/voxweave-react
Version:
A customizable and interactive voice UI component for React applications
3 lines (2 loc) • 1.73 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index8.js"),o=require("./index6.js"),e=require("react/jsx-runtime");function x({onAccept:r,onCancel:t,privacyPolicyUrl:i="#",companyName:n="our service",className:a}){return e.jsx("div",{className:"vox:fixed vox:inset-0 vox:bg-black/50 vox:flex vox:items-center vox:justify-center vox:z-50",children:e.jsxs("div",{className:s.cn("vox:bg-gray-900 vox:text-gray-200 vox:p-8 vox:rounded-2xl vox:max-w-2xl vox:mx-4 vox:shadow-xl",a),children:[e.jsx("h2",{className:"vox:text-3xl vox:font-semibold vox:mb-6",children:"Terms and conditions"}),e.jsxs("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"," ",e.jsx("a",{href:i,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."]}),e.jsxs("div",{className:"vox:flex vox:justify-end vox:gap-4",children:[e.jsx(o.Button,{variant:"outline",onClick:t,className:"vox:bg-gray-800 hover:vox:bg-gray-700 vox:text-gray-200 vox:border-gray-700",children:"Cancel"}),e.jsx(o.Button,{onClick:r,className:"vox:bg-blue-600 hover:vox:bg-blue-500 vox:text-white",children:"Agree"})]})]})})}exports.PrivacyDialog=x;
//# sourceMappingURL=index9.js.map