+ {thumbnailUrl != null &&
}
+
+
+ );
+});
+
+function PinActionsMenu(props: {
i18n: LocalizerType;
pin: Pin;
onPinGoTo: (messageId: string) => void;
onPinRemove: (messageId: string) => void;
onPinsShowAll: () => void;
canPinMessages: boolean;
-}>;
+}) {
+ const { i18n, pin, onPinGoTo, onPinRemove, onPinsShowAll, canPinMessages } =
+ props;
-const Content = forwardRef(function Content(
- {
- i18n,
- pin,
- onPinGoTo,
- onPinRemove,
- onPinsShowAll,
- canPinMessages,
- ...forwardedProps
- }: ContentProps,
- ref: ForwardedRef