snp-batch-validation/frontend/src/pages/RiskComplianceHistory.tsx
HYOJIN e3465401a2 feat(screening): Risk & Compliance Screening Guide UI 개편 및 다중언어 지원 (#124)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 16:52:00 +09:00

38 lines
1.5 KiB
TypeScript

import { useState } from 'react';
import HistoryTab from '../components/screening/HistoryTab';
export default function RiskComplianceHistory() {
const [lang, setLang] = useState('KO');
return (
<div className="space-y-6">
{/* 헤더 + 언어 토글 */}
<div className="flex items-center justify-between">
<div>
<h1 className="text-2xl font-bold text-wing-text">Risk & Compliance Change History</h1>
<p className="mt-1 text-sm text-wing-muted">
S&P
</p>
</div>
<div className="flex border border-wing-border rounded-lg overflow-hidden shrink-0">
{(['EN', 'KO'] as const).map((l) => (
<button
key={l}
onClick={() => setLang(l)}
className={`px-4 py-1.5 text-sm font-bold transition-colors ${
lang === l
? 'bg-wing-text text-wing-bg'
: 'bg-wing-card text-wing-muted hover:text-wing-text'
}`}
>
{l}
</button>
))}
</div>
</div>
<HistoryTab lang={lang} />
</div>
);
}