2026-03-16 17:12:52 +07:00
|
|
|
'use client'
|
|
|
|
|
|
2026-03-02 18:57:52 +07:00
|
|
|
import { useTranslations } from 'next-intl';
|
|
|
|
|
import { IconEyeDashed } from '@/app/ui/icons/icons';
|
2026-03-17 18:41:02 +07:00
|
|
|
import { FileDetails } from '@/app/[locale]/pages/violations/[id]/page';
|
2026-03-02 18:57:52 +07:00
|
|
|
|
2026-03-17 18:41:02 +07:00
|
|
|
export default function ViolationPageTitle({ fileInfo }: { fileInfo: FileDetails }) {
|
2026-03-02 18:57:52 +07:00
|
|
|
const t = useTranslations('Global');
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="page-title-color-frame violation-page">
|
2026-03-23 12:52:04 +07:00
|
|
|
{/* <div
|
2026-03-02 18:57:52 +07:00
|
|
|
className="violation-page-icon"
|
|
|
|
|
>
|
|
|
|
|
|
2026-03-17 18:41:02 +07:00
|
|
|
{fileInfo.thumbnailFileUrl ? (
|
|
|
|
|
<img src={fileInfo.thumbnailFileUrl} alt={fileInfo.fileName} />
|
|
|
|
|
) : (
|
|
|
|
|
<IconEyeDashed />
|
|
|
|
|
)}
|
2026-03-02 18:57:52 +07:00
|
|
|
|
2026-03-23 12:52:04 +07:00
|
|
|
</div> */}
|
2026-03-17 18:41:02 +07:00
|
|
|
<h1>
|
|
|
|
|
{t('file-name')}: {fileInfo?.fileName ? fileInfo.fileName : '#'}
|
|
|
|
|
</h1>
|
2026-03-02 18:57:52 +07:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|