Documents.tsx84 lines · main
| 1 | import { Fragment } from 'react' |
| 2 | |
| 3 | import { CustomDocument } from './CustomDocument' |
| 4 | import { DPA } from './DPA' |
| 5 | import { HIPAA } from './HIPAA' |
| 6 | import { ISO27001 } from './ISO27001' |
| 7 | import { SecurityQuestionnaire } from './SecurityQuestionnaire' |
| 8 | import { SOC2 } from './SOC2' |
| 9 | import { TIA } from './TIA' |
| 10 | import { SupportLink } from '@/components/interfaces/Support/SupportLink' |
| 11 | import { |
| 12 | ScaffoldContainer, |
| 13 | ScaffoldDivider, |
| 14 | ScaffoldSection, |
| 15 | ScaffoldSectionDetail, |
| 16 | } from '@/components/layouts/Scaffold' |
| 17 | import { InlineLinkClassName } from '@/components/ui/InlineLink' |
| 18 | import { useCustomContent } from '@/hooks/custom-content/useCustomContent' |
| 19 | |
| 20 | export const Documents = () => { |
| 21 | const { organizationLegalDocuments } = useCustomContent(['organization:legal_documents']) |
| 22 | |
| 23 | if (Array.isArray(organizationLegalDocuments)) { |
| 24 | return organizationLegalDocuments.map((doc, idx) => { |
| 25 | return ( |
| 26 | <Fragment key={doc.id}> |
| 27 | <CustomDocument doc={doc} /> |
| 28 | {idx !== organizationLegalDocuments.length - 1 && <ScaffoldDivider />} |
| 29 | </Fragment> |
| 30 | ) |
| 31 | }) |
| 32 | } |
| 33 | |
| 34 | return ( |
| 35 | <> |
| 36 | <ScaffoldContainer id="dpa" className="px-6 xl:px-10"> |
| 37 | <DPA /> |
| 38 | </ScaffoldContainer> |
| 39 | |
| 40 | <ScaffoldDivider /> |
| 41 | |
| 42 | <ScaffoldContainer id="tia" className="px-6 xl:px-10"> |
| 43 | <TIA /> |
| 44 | </ScaffoldContainer> |
| 45 | |
| 46 | <ScaffoldDivider /> |
| 47 | |
| 48 | <ScaffoldContainer id="soc2" className="px-6 xl:px-10"> |
| 49 | <SOC2 /> |
| 50 | </ScaffoldContainer> |
| 51 | |
| 52 | <ScaffoldDivider /> |
| 53 | |
| 54 | <ScaffoldContainer id="iso27001" className="px-6 xl:px-10"> |
| 55 | <ISO27001 /> |
| 56 | </ScaffoldContainer> |
| 57 | |
| 58 | <ScaffoldDivider /> |
| 59 | |
| 60 | <ScaffoldContainer id="hipaa" className="px-6 xl:px-10"> |
| 61 | <HIPAA /> |
| 62 | </ScaffoldContainer> |
| 63 | |
| 64 | <ScaffoldDivider /> |
| 65 | |
| 66 | <ScaffoldContainer id="security-questionnaire" className="px-6 xl:px-10"> |
| 67 | <SecurityQuestionnaire /> |
| 68 | </ScaffoldContainer> |
| 69 | |
| 70 | <ScaffoldDivider /> |
| 71 | |
| 72 | <ScaffoldContainer className="px-6 xl:px-10"> |
| 73 | <ScaffoldSection className="py-12"> |
| 74 | <ScaffoldSectionDetail className="col-span-full"> |
| 75 | <p className="text-sm text-foreground-light m-0"> |
| 76 | <SupportLink className={InlineLinkClassName}>Submit a support request</SupportLink> if |
| 77 | you require additional documents for financial or tax reasons, such as a W-9 form. |
| 78 | </p> |
| 79 | </ScaffoldSectionDetail> |
| 80 | </ScaffoldSection> |
| 81 | </ScaffoldContainer> |
| 82 | </> |
| 83 | ) |
| 84 | } |