mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
28 lines
836 B
TypeScript
28 lines
836 B
TypeScript
'use client';
|
|
|
|
import { useEffect } from 'react';
|
|
import { TransformComponent, TransformWrapper } from 'react-zoom-pan-pinch';
|
|
|
|
import { useAppLayoutStore, useFitHeight } from '@/stores/appLayout';
|
|
import { resources } from '@/utils/constants';
|
|
|
|
export function Component() {
|
|
const hideFooter = useAppLayoutStore(state => state.hideFooter);
|
|
const panelHeight = useFitHeight('0px');
|
|
|
|
useEffect(() => {
|
|
hideFooter(true);
|
|
return () => hideFooter(false);
|
|
}, [hideFooter]);
|
|
|
|
return (
|
|
<div className='cc-fade-in flex justify-center overflow-hidden' style={{ maxHeight: panelHeight }}>
|
|
<TransformWrapper>
|
|
<TransformComponent>
|
|
<img alt='Схема базы данных' src={resources.db_schema} className='w-fit h-fit' />
|
|
</TransformComponent>
|
|
</TransformWrapper>
|
|
</div>
|
|
);
|
|
}
|