diff options
Diffstat (limited to 'src/plugins/translate/TranslateIcon.tsx')
-rw-r--r-- | src/plugins/translate/TranslateIcon.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/translate/TranslateIcon.tsx b/src/plugins/translate/TranslateIcon.tsx index d944ec1..af97a53 100644 --- a/src/plugins/translate/TranslateIcon.tsx +++ b/src/plugins/translate/TranslateIcon.tsx @@ -37,9 +37,12 @@ export function TranslateIcon({ height = 24, width = 24, className }: { height?: ); } -export function TranslateChatBarIcon() { +export function TranslateChatBarIcon({ slateProps }: { slateProps: { type: { analyticsName: string; }; }; }) { const { autoTranslate } = settings.use(["autoTranslate"]); + if (slateProps.type.analyticsName !== "normal") + return null; + return ( <Tooltip text="Open Translate Modal"> {({ onMouseEnter, onMouseLeave }) => ( |