import XrayIcon from 'shared/components/icons/xray.js' import { linkClasses, Chevron } from 'shared/components/navigation/primary.js' import Reset from './reset.js' import Disable from './disable.js' import List from './list.js' import { Ul, Details, TopSummary } from 'shared/components/workbench/menu' import { useTranslation } from 'next-i18next' const Xray = props => { const { t } = useTranslation(['app', 'settings']) return (
}> {props.gist?.xray?.enabled ? ( <> {t('settings:xray.t')} ) : ( <> {t('cfp:thingIsDisabled', { thing: t('settings:xray.t') })} ) } {props.gist?.xray?.enabled && ( )}
) } export default Xray