OptInToOpenAIToggle.tsx 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import {
  2. Button,
  3. Dialog,
  4. DialogContent,
  5. DialogHeader,
  6. DialogSection,
  7. DialogTitle,
  8. DialogTrigger,
  9. } from 'ui'
  10. import { InlineLink } from '@/components/ui/InlineLink'
  11. export const OptInToOpenAIToggle = () => {
  12. return (
  13. <Dialog>
  14. <DialogTrigger asChild>
  15. <Button type="outline" className="w-fit">
  16. Learn more about data privacy
  17. </Button>
  18. </DialogTrigger>
  19. <DialogContent className="sm:max-w-2xl">
  20. <DialogHeader padding="small" className="border-b">
  21. <DialogTitle>Data Privacy and Briven AI</DialogTitle>
  22. </DialogHeader>
  23. <DialogSection
  24. padding="small"
  25. className="flex flex-col gap-y-4 text-sm text-foreground-light"
  26. >
  27. <p>
  28. Briven AI utilizes third-party AI providers designed with a strong focus on data
  29. privacy and security.
  30. </p>
  31. <p>
  32. By default, only schema data is shared with third-party AI providers. This is not
  33. retained by them nor used as training data. With your permission, Briven may also
  34. share customer-generated prompts, database data, and project logs with these providers.
  35. This information is used solely to generate responses to your queries and is not
  36. retained by the providers or used to train their models.
  37. </p>
  38. <p>
  39. For organizations with HIPAA compliance enabled in their Briven configuration, any
  40. consented information will only be shared with third-party AI providers with whom
  41. Briven has established a Business Associate Agreement (BAA).
  42. </p>
  43. <p>
  44. For more detailed information about how we collect and use your data, see our{' '}
  45. <InlineLink href="https://supabase.com/privacy">Privacy Policy</InlineLink>. You can
  46. choose which types of information you consent to share by selecting from the options in
  47. the AI settings.
  48. </p>
  49. </DialogSection>
  50. </DialogContent>
  51. </Dialog>
  52. )
  53. }