TransHub / client /src /pages /TextDetail.tsx
linguabot's picture
Upload folder using huggingface_hub
33ca6de verified
import React from 'react';
import { useParams, Link } from 'react-router-dom';
const TextDetail: React.FC = () => {
const { id } = useParams();
return (
<div className="px-4 sm:px-6 lg:px-8">
<div className="mb-8">
<h1 className="text-2xl font-bold text-gray-900">Text Details</h1>
<p className="mt-2 text-gray-600">View and analyze culturally rich text</p>
</div>
<div className="bg-white rounded-lg shadow p-6">
<h2 className="text-lg font-medium text-gray-900 mb-4">Text ID: {id}</h2>
<p className="text-gray-600 mb-4">
This page will show detailed information about the selected text, including cultural elements,
context, and professional reference examples.
</p>
<div className="flex space-x-3">
<Link
to={`/text/${id}/submit`}
className="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors duration-200"
>
Create Translation
</Link>
<Link
to="/search"
className="bg-gray-600 hover:bg-gray-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors duration-200"
>
Back to Search
</Link>
</div>
</div>
</div>
);
};
export default TextDetail;