hunk.code_window:     paths-ignore:
         - README.md
         - .github/**
         - '!.github/workflows/nx.yml'
     pull_request:
     merge_group:
       branches:
         - master
         - v[0-9]+.[0-9]+.x-staging
  
hunk.labels: keep keep keep add keep keep keep keep keep
hunk.after_edit:       - '!.github/actions/build-rust/action.yml'
         - '!.github/actions/setup-node/action.yml'
  
hunk.file_path: .github/workflows/nx.yml
hunk.type: add
file: import { currentPageIdAtom } from '@toeverything/infra/atom';
  import { atom } from 'jotai/vanilla';
  
  import { pageSettingFamily } from './index';
  
  export const currentModeAtom = atom<'page' | 'edgeless'>(get => {
    const pageId = get(currentPageIdAtom);
    if (!pageId) {
      return 'page';
    }
    return get(pageSettingFamily(pageId)).mode;
  });
  