HIPAA.tsx 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // @ts-nocheck
  2. import { ExternalLink } from 'lucide-react'
  3. import { Button } from 'ui'
  4. import {
  5. ScaffoldSection,
  6. ScaffoldSectionContent,
  7. ScaffoldSectionDetail,
  8. } from '@/components/layouts/Scaffold'
  9. import { useSendEventMutation } from '@/data/telemetry/send-event-mutation'
  10. import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'
  11. export const HIPAA = () => {
  12. const { data: organization } = useSelectedOrganizationQuery()
  13. const { mutate: sendEvent } = useSendEventMutation()
  14. return (
  15. <ScaffoldSection className="py-12">
  16. <ScaffoldSectionDetail>
  17. <h4 className="mb-5">HIPAA</h4>
  18. <div className="space-y-2 text-sm text-foreground-light [&_p]:m-0">
  19. <p>
  20. This is only for HIPAA requests. Please ignore this if you already have HIPAA enabled.
  21. </p>
  22. <p>
  23. Organizations on the Team Plan or above are eligible for a paid HIPAA compliance add-on.
  24. You can submit a request here and we will get back to you on the pricing and process for
  25. your use case.
  26. </p>
  27. <p>
  28. Organizations on the Free or Pro Plan can also submit a request for HIPAA. Note that you
  29. are still required to upgrade to the Team Plan after your request is approved.
  30. </p>
  31. </div>
  32. </ScaffoldSectionDetail>
  33. <ScaffoldSectionContent>
  34. <div className="@lg:flex items-center justify-center h-full">
  35. <Button asChild type="default" iconRight={<ExternalLink />}>
  36. <a
  37. href="https://forms.supabase.com/hipaa2"
  38. target="_blank"
  39. rel="noreferrer noopener"
  40. onClick={() =>
  41. sendEvent({
  42. action: 'hipaa_request_button_clicked',
  43. groups: { organization: organization?.slug ?? 'Unknown' },
  44. })
  45. }
  46. >
  47. Request HIPAA
  48. </a>
  49. </Button>
  50. </div>
  51. </ScaffoldSectionContent>
  52. </ScaffoldSection>
  53. )
  54. }