1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: type feedback component.

This commit is contained in:
Thomas Heartman 2022-03-02 12:05:29 +01:00
parent 1054f74141
commit 756204c529

View File

@ -131,10 +131,16 @@ const stateReducer = (state: CompleteData, message: Message) => {
}
};
export const FeedbackWrapper = ({ seedData, open }) => {
type Props = {
seedData?: InitialData;
open?: boolean;
};
export const FeedbackWrapper: React.FC<Props> = ({ seedData, open }) => {
const {
siteConfig: { customFields },
} = useDocusaurusContext();
const feedbackTargetUrl: string | undefined =
(customFields?.unleashFeedbackTargetUrl as string | undefined) ??
(typeof process !== 'undefined' &&