'use client' import { Editor, ItemsPanel } from '@pascal-app/editor' import { Hammer, Layers, Package, Settings } from 'lucide-react' import Image from 'next/image' import Link from 'next/link' import { BuildTab } from '@/components/build-tab' import { CommunityViewerToolbarLeft, CommunityViewerToolbarRight, } from '@/components/viewer-toolbar' import { withPascalBasePath } from '@/lib/pascal-base-path' // The open-source editor only ships the built-in catalog (no uploaded items), // so the Library/Community/Mine source chips and tag filters add nothing — // drop them and keep the panel to plain categories. function EditorItemsPanel() { return } const SIDEBAR_TABS = [ { id: 'site', label: '场景', component: () => null, mobileDefaultSnap: 0.5, mobileIcon: , icon: ( ), }, { id: 'build', label: '搭建', component: BuildTab, mobileDefaultSnap: 0.5, mobileIcon: , icon: ( ), }, { id: 'items', label: '物品', component: EditorItemsPanel, mobileDefaultSnap: 0.5, mobileIcon: , icon: ( ), }, { id: 'settings', label: '设置', component: () => null, mobileDefaultSnap: 0.5, mobileIcon: , icon: ( ), }, ] const PROJECT_ID = 'local-editor' export default function Home() { return (
{PROJECT_ID === 'local-editor' && (
本地编辑器中的场景不会自动保存。 打开最近场景 · 新建场景
)} } viewerToolbarRight={} />
) }