mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 15:00:30 +03:00
Add Base props
This commit is contained in:
parent
5b31ce6288
commit
5466e440a9
1 changed files with 18 additions and 0 deletions
|
|
@ -19,6 +19,24 @@ import {
|
|||
MessageSourceCodeItem,
|
||||
} from './message/Message';
|
||||
|
||||
type BaseOptionProps = {
|
||||
mEvent: MatrixEvent;
|
||||
room: Room;
|
||||
mx: MatrixClient;
|
||||
relations: Relations | undefined;
|
||||
eventId: string;
|
||||
canSendReaction: boolean | undefined;
|
||||
canEdit: boolean | undefined;
|
||||
canDelete: boolean | undefined;
|
||||
canPinEvent: boolean | undefined;
|
||||
hideReadReceipts: boolean | undefined;
|
||||
onReactionToggle: (targetEventId: string, key: string, shortcode?: string | undefined) => void;
|
||||
onReplyClick: MouseEventHandler<HTMLButtonElement>;
|
||||
onEditId: ((eventId?: string | undefined) => void) | undefined;
|
||||
handleAddReactions: MouseEventHandler<HTMLButtonElement>;
|
||||
closeMenu: () => void;
|
||||
};
|
||||
|
||||
export function MessageDropdownMenu({
|
||||
mEvent,
|
||||
room,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue