import { Drawer, Tabs } from 'antd'; import React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Dispatch } from 'redux'; import { AppState } from 'store/reducers'; import AppActions from 'types/actions'; import { SET_DETAILED_LOG_DATA } from 'types/actions/logs'; import { ILogsReducer } from 'types/reducer/logs'; import JSONView from './JsonView'; import TableView from './TableView'; function LogDetailedView(): JSX.Element { const { detailedLog } = useSelector( (state) => state.logs, ); const dispatch = useDispatch>(); const onDrawerClose = (): void => { dispatch({ type: SET_DETAILED_LOG_DATA, payload: null, }); }; return ( {detailedLog && } {detailedLog && } ); } export default LogDetailedView;