import React, { forwardRef } from 'react'; type ExportViewProps = { auditName: string; selectedDisplays: string[]; displays: { id: string; name: string; component: React.ComponentType }[]; }; // eslint-disable-next-line react/display-name const ExportView = forwardRef( ({ auditName, selectedDisplays, displays }, ref) => { return (

{auditName}

{selectedDisplays.map(displayId => { const display = displays.find(d => d.id === displayId); if (display) { const Component = display.component; return (

{display.name}

); } return null; })}
); }, ); export default ExportView;