UNPKG

@fremtind/jkl-feedback-react

Version:
21 lines (20 loc) 834 B
import { WithChildren } from "@fremtind/jkl-core"; import { BaseTextAreaProps } from "@fremtind/jkl-text-input-react/src/BaseTextArea"; import { FC } from "react"; type FeedbackContext = { feedbackSubmitted: boolean; followupStarted: boolean; followupSubmitted: boolean; contactSubmitted: boolean; landmarkLabel?: string; setFeedbackSubmitted: (state: boolean) => void; setFollowupStarted: (state: boolean) => void; setFollowupSubmitted: (state: boolean) => void; setContactSubmitted: (state: boolean) => void; } & Pick<BaseTextAreaProps, "counter">; export declare const useFeedbackContext: () => FeedbackContext; interface FeedbackContextProviderProps extends WithChildren { value: FeedbackContext; } export declare const FeedbackContextProvider: FC<FeedbackContextProviderProps>; export {};