import { z } from 'zod'; import dayjs from 'dayjs'; import React, { forwardRef } from 'react'; import { ReportSchema } from '@ballerine/common'; import { TextWithNAFallback } from '@ballerine/ui'; import { ctw } from '@/common/utils/ctw/ctw'; import { BallerineLogo } from '@/common/components/atoms/icons'; import { MerchantMonitoringReportStatus } from '@/pages/MerchantMonitoring/components/MerchantMonitoringReportStatus/MerchantMonitoringReportStatus'; interface ReportPDFContainerProps { websiteWithNoProtocol?: string; businessReport: z.infer; } export const ReportPDFContainer = forwardRef< HTMLDivElement, React.ComponentProps<'div'> & ReportPDFContainerProps >(({ businessReport, websiteWithNoProtocol, ...props }, ref) => { return (
Report ID {businessReport?.id}
Merchant ID {businessReport?.business?.id ?? 'N/A'}
Report Export Date {dayjs().format('MMMM Do, YYYY HH:mm')}
{websiteWithNoProtocol}
Status
Created at {businessReport?.displayDate && dayjs(new Date(businessReport?.displayDate)).format('MMM Do, YYYY HH:mm')}
Monitoring Status  
{props.children}
Report powered by Ballerine. All rights reserved.
For support and inquiries: support@ballerine.com
www.ballerine.com
Disclaimer:
This report ("Report") is provided by Ballerine, Inc., its affiliates, and third-party licensors (collectively, "Ballerine" or{' '} "We") solely to the client to whom it is addressed ("You") for internal business purposes, in accordance with Your Master Services Agreement ( "MSA") with Ballerine. The Report is for general informational purposes only and is provided{' '} "AS IS", without warranties of any kind, express or implied, including but not limited to accuracy, completeness, reliability, suitability, or availability for any purpose. Whilst We endeavor to keep the information up to date and correct, Ballerine makes no representations or warranties regarding the completeness, accuracy, reliability, or availability of the Report or any related information and will not be liable for any false, inaccurate, inappropriate, or incomplete information presented. You are solely responsible for ensuring compliance with all applicable laws, including privacy regulations (e.g.,{' '} GDPR, CCPA), and may not disclose, distribute, or share this Report or its contents with any third party without Ballerine’s prior written consent. To the maximum extent permitted by law, Ballerine disclaims all liability for any direct, indirect, incidental, special, punitive, or consequential damages arising from the use of this Report, and You assume full responsibility for any misuse, regulatory breaches, or violations of the MSA.
); }); ReportPDFContainer.displayName = 'ReportPDFContainer';