TIA.tsx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // @ts-nocheck
  2. import { Download } 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 TIA = () => {
  12. const { data: organization } = useSelectedOrganizationQuery()
  13. const { mutate: sendEvent } = useSendEventMutation()
  14. return (
  15. <ScaffoldSection className="py-12">
  16. <ScaffoldSectionDetail>
  17. <h4 className="mb-5">Transfer Impact Assessment (TIA)</h4>
  18. <div className="space-y-2 text-sm text-foreground-light [&_p]:m-0">
  19. <p>
  20. All organizations can access and use our TIA as part of their GDPR-compliant data
  21. transfer process.
  22. </p>
  23. </div>
  24. </ScaffoldSectionDetail>
  25. <ScaffoldSectionContent>
  26. <div className="@lg:flex items-center justify-center h-full">
  27. <Button asChild type="default" iconRight={<Download />}>
  28. <a
  29. href="https://supabase.com/downloads/docs/Supabase+TIA+250314.pdf"
  30. target="_blank"
  31. rel="noreferrer noopener"
  32. download={true}
  33. onClick={() =>
  34. sendEvent({
  35. action: 'document_view_button_clicked',
  36. properties: { documentName: 'TIA' },
  37. groups: { organization: organization?.slug ?? 'Unknown' },
  38. })
  39. }
  40. >
  41. Download TIA
  42. </a>
  43. </Button>
  44. </div>
  45. </ScaffoldSectionContent>
  46. </ScaffoldSection>
  47. )
  48. }