mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
25 lines
768 B
TypeScript
25 lines
768 B
TypeScript
import Icon from '@components/Icon'
|
|
import { StyleConstants } from '@utils/styles/constants'
|
|
import { useTheme } from '@utils/styles/ThemeManager'
|
|
import React, { useContext } from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import StatusContext from '../Context'
|
|
|
|
const HeaderSharedMuted: React.FC = () => {
|
|
const { status } = useContext(StatusContext)
|
|
const { t } = useTranslation('componentTimeline')
|
|
const { colors } = useTheme()
|
|
|
|
return status?.muted ? (
|
|
<Icon
|
|
accessibilityLabel={t('shared.header.shared.muted.accessibilityLabel')}
|
|
name='VolumeX'
|
|
size={StyleConstants.Font.Size.M}
|
|
color={colors.secondary}
|
|
style={{ marginLeft: StyleConstants.Spacing.S }}
|
|
/>
|
|
) : null
|
|
}
|
|
|
|
export default HeaderSharedMuted
|