Files
srbhr--resume-matcher/apps/frontend/components/builder/jd-display.tsx
T
wehub-resource-sync 5bdf4cc89a
Publish Docker Image / publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:39:36 +08:00

34 lines
939 B
TypeScript

'use client';
import { FileText } from 'lucide-react';
import { useTranslations } from '@/lib/i18n';
interface JDDisplayProps {
content: string;
}
/**
* Read-only display of the job description.
* Shows the original JD text in a scrollable container.
*/
export function JDDisplay({ content }: JDDisplayProps) {
const { t } = useTranslations();
return (
<div className="h-full flex flex-col">
{/* Header */}
<div className="flex items-center gap-2 p-4 border-b border-paper-tint bg-paper-tint">
<FileText className="w-4 h-4 text-ink-soft" />
<h3 className="font-mono text-sm font-bold uppercase text-ink-soft">
{t('builder.jdMatch.jobDescriptionTitle')}
</h3>
</div>
{/* Content */}
<div className="flex-1 overflow-y-auto p-4">
<div className="whitespace-pre-wrap text-sm leading-relaxed text-ink-soft">{content}</div>
</div>
</div>
);
}