diff --git a/src/frontend/src/features/rooms/livekit/components/Tools.tsx b/src/frontend/src/features/rooms/livekit/components/Tools.tsx index ada54c4c..5c8780ac 100644 --- a/src/frontend/src/features/rooms/livekit/components/Tools.tsx +++ b/src/frontend/src/features/rooms/livekit/components/Tools.tsx @@ -3,7 +3,6 @@ import { css } from '@/styled-system/css' import { Button as RACButton } from 'react-aria-components' import { useTranslation } from 'react-i18next' import { ReactNode } from 'react' -import { RiFileTextFill, RiLiveFill } from '@remixicon/react' import { SubPanelId, useSidePanel } from '../hooks/useSidePanel' import { useIsRecordingModeEnabled, @@ -11,7 +10,6 @@ import { useHasRecordingAccess, TranscriptSidePanel, ScreenRecordingSidePanel, - useIsRecordingActive, } from '@/features/recording' import { FeatureFlags } from '@/features/analytics/enums' import { useConfig } from '@/api/useConfig' @@ -22,7 +20,6 @@ export interface ToolsButtonProps { description: string onPress: () => void isBetaFeature?: boolean - isActive?: boolean } const ToolButton = ({ @@ -31,7 +28,6 @@ const ToolButton = ({ description, onPress, isBetaFeature = false, - isActive = false, }: ToolsButtonProps) => { return ( {icon} - {isBetaFeature && ( - - BETA - - )} {title} - {isActive && ( + {isBetaFeature && ( + > + BETA + )} {description} + + chevron_forward + ) } @@ -122,17 +123,11 @@ export const Tools = () => { RecordingMode.Transcript ) - const isTranscriptActive = useIsRecordingActive(RecordingMode.Transcript) - const hasScreenRecordingAccess = useHasRecordingAccess( RecordingMode.ScreenRecording, FeatureFlags.ScreenRecording ) - const isScreenRecordingActive = useIsRecordingActive( - RecordingMode.ScreenRecording - ) - switch (activeSubPanelId) { case SubPanelId.TRANSCRIPT: return @@ -150,6 +145,7 @@ export const Tools = () => { flexGrow={1} flexDirection="column" alignItems="start" + gap={0.5} > { className={css({ textStyle: 'sm', paddingX: '0.75rem', + marginBottom: '1rem', })} - margin="md" > {t('body')}{' '} {data?.support?.help_article_more_tools && ( @@ -172,22 +168,20 @@ export const Tools = () => { {isTranscriptEnabled && ( } + icon={speech_to_text} title={t('tools.transcript.title')} description={t('tools.transcript.body')} onPress={() => openTranscript()} isBetaFeature - isActive={isTranscriptActive} /> )} {hasScreenRecordingAccess && ( } + icon={mode_standby} title={t('tools.screenRecording.title')} description={t('tools.screenRecording.body')} onPress={() => openScreenRecording()} isBetaFeature - isActive={isScreenRecordingActive} /> )}