setShowSurvey(!showSurvey)}>
+
!readOnly && setShowSurvey(!showSurvey)}
+ style={{ color: getContrastingTextColor(survey.appearance.widgetColor) }}
+ >
{survey.appearance?.widgetLabel || ''}
)}
- {showSurvey &&
}
+ {showSurvey && (
+
+ )}
>
)
}
diff --git a/src/loader-surveys-preview.ts b/src/loader-surveys-preview.ts
new file mode 100644
index 000000000..46315a70f
--- /dev/null
+++ b/src/loader-surveys-preview.ts
@@ -0,0 +1 @@
+export { renderSurveysPreview, renderFeedbackWidgetPreview } from './extensions/surveys'
diff --git a/src/loader-surveys.ts b/src/loader-surveys.ts
index d8c25e0de..9e7bf8e1f 100644
--- a/src/loader-surveys.ts
+++ b/src/loader-surveys.ts
@@ -1,7 +1,6 @@
import { generateSurveys } from './extensions/surveys'
import { window } from './utils/globals'
-export { renderSurveysPreview } from './extensions/surveys'
if (window) {
;(window as any).extendPostHogWithSurveys = generateSurveys