import { CopyButton } from '@/components/CopyButton'; import { useI18n } from '@/utils/chromeI18n'; import { stringifyJson } from '@/utils/jwt'; import { cn } from '@/lib/utils'; interface JwtSectionProps { title: string; content: unknown; colorClass: string; bgClass: string; borderClass: string; } export default function JwtSection({ title, content, colorClass, bgClass, borderClass, }: JwtSectionProps) { const { t } = useI18n('jwt'); return (
{content ? stringifyJson(content) : t('jwt:invalidFormat')}