import { Button } from '@affine/component/ui/button'; import { useI18n } from '@affine/i18n'; import { Logo1Icon } from '@blocksuite/icons/rc'; import { useCallback } from 'react'; import { DesktopNavbar } from './desktop-navbar'; import * as styles from './index.css'; import { MobileNavbar } from './mobile-navbar'; export const AffineOtherPageLayout = ({ children, }: { children: React.ReactNode; }) => { const t = useI18n(); const openDownloadLink = useCallback(() => { open(runtimeConfig.downloadUrl, '_blank'); }, []); return (
{environment.isDesktop ? null : (
)} {children}
); };