mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 02:43:50 +00:00
9338a615d4
* chore: update related deps * refactor: memoise entrypoints * refactor: store selectors * refactor: improve component performance * chore: remove unused dependencies * refactor: improve component dnd
26 lines
719 B
TypeScript
26 lines
719 B
TypeScript
import { memo } from 'react';
|
|
import { Box } from '@chakra-ui/react';
|
|
import { IoArrowUp } from '@react-icons/all-files/io5/IoArrowUp';
|
|
|
|
import ErrorBoundary from '../../common/components/error-boundary/ErrorBoundary';
|
|
import { handleLinks } from '../../common/utils/linkUtils';
|
|
|
|
import Info from './Info';
|
|
|
|
import style from '../editors/Editor.module.scss';
|
|
|
|
const InfoExport = () => {
|
|
return (
|
|
<Box className={style.info} data-testid='panel-info'>
|
|
<IoArrowUp className={style.corner} onClick={(event) => handleLinks(event, 'info')} />
|
|
<div className={style.content}>
|
|
<ErrorBoundary>
|
|
<Info />
|
|
</ErrorBoundary>
|
|
</div>
|
|
</Box>
|
|
);
|
|
}
|
|
|
|
export default memo(InfoExport)
|