import { StyledPublishContent, StyledPublishCopyContainer, StyledPublishExplanation, StyledWorkspaceName, StyledWorkspaceType, } from './style'; import { DownloadIcon } from '@blocksuite/icons'; import { Button } from '@/ui/button'; import { Menu, MenuItem } from '@/ui/menu'; import { WorkspaceUnit } from '@affine/datacenter'; import { useWorkspaceHelper } from '@/hooks/use-workspace-helper'; import { Trans, useTranslation } from '@affine/i18n'; import { WorkspaceUnitAvatar } from '@/components/workspace-avatar'; export const SyncPage = ({ workspace }: { workspace: WorkspaceUnit }) => { const { enableWorkspace } = useWorkspaceHelper(); const { t } = useTranslation(); return (
{workspace.provider === 'local' ? ( <>  {workspace.name}  is a Local Workspace. All data is stored on the current device. You can enable AFFiNE Cloud for this workspace to keep data in sync with the cloud. ) : ( <> {{ workspaceName: workspace.name ?? 'Affine' }} is Cloud Workspace. All data will be synchronised and saved to the AFFiNE { // deleteMember(workspace.id, 0); }} icon={} > {t('Download data to device', { CoreOrAll: 'core' })} { // deleteMember(workspace.id, 0); }} icon={} > {t('Download data to device', { CoreOrAll: 'all' })} } placement="bottom-end" disablePortal={true} > )}
); };