'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'
// 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: 'Scene',
component: () => null,
mobileDefaultSnap: 0.5,
mobileIcon: ,
icon: (
),
},
{
id: 'build',
label: 'Build',
component: BuildTab,
mobileDefaultSnap: 0.5,
mobileIcon: ,
icon: (
),
},
{
id: 'items',
label: 'Items',
component: EditorItemsPanel,
mobileDefaultSnap: 0.5,
mobileIcon: ,
icon: (
),
},
{
id: 'settings',
label: 'Settings',
component: () => null,
mobileDefaultSnap: 0.5,
mobileIcon: ,
icon: (
),
},
]
const PROJECT_ID = 'local-editor'
export default function Home() {
return (
{PROJECT_ID === 'local-editor' && (
Local editor — scenes are not saved.
Open recent scenes
·
Create new
)}
}
viewerToolbarRight={
}
/>
)
}