hunk.code_window:       uses: addnab/docker-run-action@v3
         with:
           image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
           options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build
           run: >-
             yarn nx build @affine/native --target ${{ inputs.target }}
hunk.labels: keep keep keep replace keep keep
hunk.after_edit:         options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build -e NX_CLOUD_ACCESS_TOKEN=${{ inputs.nx_token }}
  
hunk.file_path: .github/actions/build-rust/action.yml
hunk.type: replace
file: import { BrowserWarning, DownloadTips } from '@affine/component/affine-banner';
  import type { StoryFn } from '@storybook/react';
  import { useState } from 'react';
  
  export default {
    title: 'AFFiNE/Banner',
    component: BrowserWarning,
  };
  
  export const Default: StoryFn = () => {
    const [closed, setIsClosed] = useState(true);
    return (
      <div>
        <BrowserWarning
          message={<span>test</span>}
          show={closed}
          onClose={() => {
            setIsClosed(false);
          }}
        />
      </div>
    );
  };
  
  export const Download: StoryFn = () => {
    const [, setIsClosed] = useState(true);
    return (
      <div>
        <DownloadTips
          onClose={() => {
            setIsClosed(false);
          }}
        />
      </div>
    );
  };
  