mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 13:44:54 +00:00
15 lines
478 B
TypeScript
15 lines
478 B
TypeScript
import { ComponentPalette } from '@/components/molecules/ComponentPalette'
|
|
import { ComponentDefinition } from '@/lib/component-definitions'
|
|
|
|
interface SchemaEditorSidebarProps {
|
|
onDragStart: (component: ComponentDefinition, e: React.DragEvent) => void
|
|
}
|
|
|
|
export function SchemaEditorSidebar({ onDragStart }: SchemaEditorSidebarProps) {
|
|
return (
|
|
<div className="w-64 border-r border-border bg-card">
|
|
<ComponentPalette onDragStart={onDragStart} />
|
|
</div>
|
|
)
|
|
}
|