UNPKG

prometix

Version:

**Prometix** adalah widget feedback ringan berbasis React + TailwindCSS yang dapat di-embed langsung di HTML atau diintegrasikan ke aplikasi React. Cocok untuk mengumpulkan umpan balik pengguna secara cepat dan mudah.

30 lines (29 loc) 821 B
import React from 'react'; import { FeedbackConfig } from './utils'; interface Payload { surveyId: string; customerId: string; } interface OptionModal { title?: string; descriptionScore?: string; thankyou?: string; illustration?: string; followupQuestion?: string; } export interface Props { config: Partial<FeedbackConfig>; children: React.ReactNode; showFeedbackModal: (payload: Payload, options?: OptionModal) => Promise<{ submitted: boolean; } | { submitted: null; error: any; }>; hideFeedbackModal: () => void; } export declare const FeedbackUsContext: React.Context<Omit<Props, "children"> | undefined>; declare function App({ children, embed, ...props }: Partial<Props> & { embed?: boolean; }): React.JSX.Element; export default App;