2024-07-28 13:07:22 +03:00
|
|
|
'use client';
|
|
|
|
|
2024-12-13 21:31:09 +03:00
|
|
|
import { useEffect } from 'react';
|
2024-07-28 13:07:22 +03:00
|
|
|
import { TransformComponent, TransformWrapper } from 'react-zoom-pan-pinch';
|
|
|
|
|
|
|
|
import { useConceptOptions } from '@/context/ConceptOptionsContext';
|
|
|
|
import { resources } from '@/utils/constants';
|
|
|
|
|
|
|
|
function DatabaseSchemaPage() {
|
|
|
|
const { calculateHeight, setNoFooter } = useConceptOptions();
|
|
|
|
|
2024-12-13 21:31:09 +03:00
|
|
|
const panelHeight = calculateHeight('0px');
|
2024-07-28 13:07:22 +03:00
|
|
|
|
2024-12-12 21:36:46 +03:00
|
|
|
useEffect(() => {
|
2024-07-28 13:07:22 +03:00
|
|
|
setNoFooter(true);
|
|
|
|
return () => setNoFooter(false);
|
|
|
|
}, [setNoFooter]);
|
|
|
|
|
|
|
|
return (
|
2024-12-12 13:19:12 +03:00
|
|
|
<div className='cc-fade-in flex justify-center overflow-hidden' style={{ maxHeight: panelHeight }}>
|
2024-07-28 13:07:22 +03:00
|
|
|
<TransformWrapper>
|
|
|
|
<TransformComponent>
|
|
|
|
<img alt='Схема базы данных' src={resources.db_schema} className='w-fit h-fit' />
|
|
|
|
</TransformComponent>
|
|
|
|
</TransformWrapper>
|
2024-12-12 13:19:12 +03:00
|
|
|
</div>
|
2024-07-28 13:07:22 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default DatabaseSchemaPage;
|