@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
29 lines (28 loc) • 871 B
TypeScript
import { AvatarProps, TypographyProps } from '@mui/material';
import { ReactNode } from 'react';
import { ButtonModel } from '../Button';
export interface SearchValueModel {
id: string;
word: string;
}
export interface MessageModel {
type: 'error' | 'success';
message: string;
}
export interface PreviewBlockModel {
id?: string;
children: ReactNode;
needMenu?: boolean;
onClickReply?: ({ selectText, inputValue, }: {
selectText: string;
inputValue: string;
}) => void;
onMessage?: (message: MessageModel) => void;
searchValues?: SearchValueModel[];
AvatarProps?: AvatarProps;
NameProps?: TypographyProps;
ReplyButtonProps?: Partial<Omit<ButtonModel, 'onClick'>>;
CancelButtonProps?: Partial<Omit<ButtonModel, 'onClick'>>;
minLetters?: number;
setCommentId: (index: number) => string;
}