@redocly/theme
Version:
Shared UI components lib
27 lines (26 loc) • 809 B
TypeScript
import type { JSX } from 'react';
import type { OptionalEmailSettings, ReasonsSettingsSchema } from '@redocly/config';
export type SentimentProps = {
onSubmit: (value: {
score: number;
comment?: string;
reasons?: string[];
email?: string;
}) => void;
settings?: {
label?: string;
submitText?: string;
comment?: {
hide?: boolean;
likeLabel?: string;
dislikeLabel?: string;
};
reasons?: ReasonsSettingsSchema & {
like?: ReasonsSettingsSchema;
dislike?: ReasonsSettingsSchema;
};
optionalEmail?: OptionalEmailSettings;
};
className?: string;
};
export declare function Sentiment({ settings, onSubmit, className }: SentimentProps): JSX.Element;