import { Button } from '@/components/ui/button'; import { Label } from '@/components/ui/label'; import { Badge } from '@/components/ui/badge'; import { Shield, ShieldCheck, MousePointerClick, AlertTriangle } from 'lucide-react'; import { useRightClickRestorer } from './useRightClickRestorer'; import { useI18n } from '@/utils/chromeI18n'; export default function RightClickRestorerPage() { const { t } = useI18n('rightClickRestorer'); const { domain, isLoading, isUnlocked, isUnsupported, unlock } = useRightClickRestorer(); if (isLoading) { return (
{t('rightClickRestorer:loading')}
); } return (
{/* Current Domain */}
{domain || '—'} {isUnsupported ? ( {t('rightClickRestorer:unsupported')} ) : isUnlocked ? ( {t('rightClickRestorer:statusUnlocked')} ) : ( {t('rightClickRestorer:statusLocked')} )}
{/* Unlock Action */}
{isUnsupported ? ( <>

{t('rightClickRestorer:unsupportedDesc')}

) : ( <>

{t('rightClickRestorer:unlockDesc')}

)}
); }