mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { Provider } from 'react-redux';
|
|
import styled from 'styled-components';
|
|
import { AnimatePresence } from 'framer-motion';
|
|
import { LeftPane } from './leftpane/LeftPane';
|
|
import { SessionMainPanel } from './SessionMainPanel';
|
|
import { SessionTheme } from '../themes/SessionTheme';
|
|
import { Flex } from './basic/Flex';
|
|
|
|
const StyledGutter = styled.div`
|
|
width: var(--left-panel-width) !important;
|
|
transition: none;
|
|
`;
|
|
|
|
export const SessionInboxView = () => {
|
|
if (!window.inboxStore) {
|
|
throw new Error('window.inboxStore is undefined in SessionInboxView');
|
|
}
|
|
|
|
return (
|
|
<div className="inbox index">
|
|
<Provider store={window.inboxStore}>
|
|
<SessionTheme>
|
|
<AnimatePresence>
|
|
<Flex $container={true} height="0" $flexShrink={100} $flexGrow={1}>
|
|
<StyledGutter>
|
|
<LeftPane />
|
|
</StyledGutter>
|
|
<SessionMainPanel />
|
|
</Flex>
|
|
</AnimatePresence>
|
|
</SessionTheme>
|
|
</Provider>
|
|
</div>
|
|
);
|
|
};
|