mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 04:43:20 +03:00
c2cf331ff7
fix AF-1197
18 lines
525 B
TypeScript
18 lines
525 B
TypeScript
import { useAppSettingHelper } from '@affine/core/hooks/affine/use-app-setting-helper';
|
|
import { AppTabsHeader } from '@affine/core/modules/app-tabs-header';
|
|
|
|
import * as styles from './shell.css';
|
|
|
|
export function ShellRoot() {
|
|
const { appSettings } = useAppSettingHelper();
|
|
const translucent =
|
|
environment.isDesktop &&
|
|
environment.isMacOs &&
|
|
appSettings.enableBlurBackground;
|
|
return (
|
|
<div className={styles.root} data-translucent={translucent}>
|
|
<AppTabsHeader mode="shell" />
|
|
</div>
|
|
);
|
|
}
|