mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-05 15:43:11 +03:00
5e56ec65e3
packages/frontend/core/src hooks -> components/hooks atoms -> components/atoms layouts -> components/layouts providers -> components/providers mixpanel -> @affine/track ~~shared~~ ~~unexpected-application-state~~
23 lines
897 B
TypeScript
23 lines
897 B
TypeScript
import { ShellAppFallback } from '@affine/core/components/affine/app-container';
|
|
import { useAppSettingHelper } from '@affine/core/components/hooks/affine/use-app-setting-helper';
|
|
import { AppTabsHeader } from '@affine/core/modules/app-tabs-header';
|
|
import { SplitViewFallback } from '@affine/core/modules/workbench/view/split-view/split-view';
|
|
|
|
import * as styles from './shell.css';
|
|
|
|
export function ShellRoot() {
|
|
const { appSettings } = useAppSettingHelper();
|
|
const translucent =
|
|
BUILD_CONFIG.isElectron &&
|
|
environment.isMacOs &&
|
|
appSettings.enableBlurBackground;
|
|
return (
|
|
<div className={styles.root} data-translucent={translucent}>
|
|
<AppTabsHeader mode="shell" className={styles.appTabsHeader} />
|
|
<ShellAppFallback className={styles.fallbackRoot}>
|
|
<SplitViewFallback className={styles.splitViewFallback} />
|
|
</ShellAppFallback>
|
|
</div>
|
|
);
|
|
}
|