import { createContext } from 'react'; import { ProvideFeedbackSchema } from '../../openapi'; import { IFeedbackCategory } from 'hooks/useSubmittedFeedback'; interface IFeedbackContext { feedbackData: IFeedbackData | undefined; openFeedback: (data: IFeedbackData) => void; closeFeedback: () => void; showFeedback: boolean; setShowFeedback: (visible: boolean) => void; } type IFeedbackText = { title: string; positiveLabel: string; areasForImprovementsLabel: string; }; export type IFeedbackData = Pick & IFeedbackText & { category: IFeedbackCategory }; export const FeedbackContext = createContext( undefined, );