import React, { createContext } from 'react'; type FindingType = { id: number; name: string; category: string; severity: string; identifier: string; status: number; }; type AuditContextType = { title: string; auditType: string; locale: string; handlerFindings: () => Promise; }; const defaultContextValue: AuditContextType = { title: '', auditType: '', locale: '', handlerFindings: () => Promise.resolve([]), }; type AuditContextProps = { children: React.ReactNode; value: AuditContextType; }; export const AuditContext = createContext(defaultContextValue); export const AuditProvider: React.FC = ({ children, value, }) => { return ( {children} ); };