mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-04 16:14:07 +00:00
21 lines
747 B
TypeScript
21 lines
747 B
TypeScript
"use client";
|
|
|
|
import { useTranslations } from 'next-intl';
|
|
import { SettingItem, SettingsSection } from './settings-section';
|
|
|
|
/**
|
|
* The plugins part of the Add-ons page when the device's OS policy turns plugins
|
|
* off: says so, where the list would be, instead of the section just not being there.
|
|
*/
|
|
export function DevicePluginsOff() {
|
|
const t = useTranslations('desktop_policy');
|
|
const tPlugins = useTranslations('plugins.settings');
|
|
return (
|
|
<SettingsSection title={tPlugins('title')}>
|
|
<SettingItem label={t('plugins_label')} description={t('plugins_off')} locked>
|
|
<span className="text-sm text-muted-foreground" data-testid="device-plugins-off">{t('off')}</span>
|
|
</SettingItem>
|
|
</SettingsSection>
|
|
);
|
|
}
|