Portal/rsconcept/frontend/src/pages/OssPage/OssPage.tsx

24 lines
505 B
TypeScript
Raw Normal View History

2024-06-07 20:17:03 +03:00
'use client';
2025-01-23 19:41:31 +03:00
import { Suspense } from 'react';
2024-11-25 19:52:57 +03:00
import { useParams } from 'react-router';
2024-06-07 20:17:03 +03:00
2025-01-23 19:41:31 +03:00
import Loader from '@/components/ui/Loader';
import { OssState } from '@/pages/OssPage/OssContext';
2024-06-07 20:17:03 +03:00
import OssTabs from './OssTabs';
function OssPage() {
const params = useParams();
2025-01-23 19:41:31 +03:00
const itemID = params.id ? Number(params.id) : undefined;
2024-06-07 20:17:03 +03:00
return (
2025-01-23 19:41:31 +03:00
<Suspense fallback={<Loader />}>
<OssState itemID={itemID}>
<OssTabs />
</OssState>
</Suspense>
2024-06-07 20:17:03 +03:00
);
}
export default OssPage;