import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { Button } from 'react-native-paper'; import { useDispatch } from 'react-redux'; import { openDialog } from '../../../../base/dialog/actions'; import AudioRoutePickerDialog from '../../../../mobile/audio-mode/components/AudioRoutePickerDialog'; import AudioIcon from './AudioIcon'; import styles from './styles'; /** * Button for selecting sound device in carmode. * * @returns {JSX.Element} - The sound device button. */ const SelectSoundDevice = () : JSX.Element => { const { t } = useTranslation(); const dispatch = useDispatch(); const onSelect = useCallback(() => dispatch(openDialog(AudioRoutePickerDialog)) , [ dispatch ]); return (