builder / components /views /projects-view.tsx
Leon4gr45's picture
Upload folder using huggingface_hub (part 2)
391c43e verified
Raw
History Blame Contribute Delete
654 Bytes
'use client';
import React from 'react';
import { Project } from '@/lib/vfs/types';
import { ProjectManager } from '@/components/project-manager';
interface ProjectsViewProps {
onProjectSelect: (project: Project) => void;
autoCreate?: boolean;
workspaceId?: string;
}
export function ProjectsView({ onProjectSelect, autoCreate, workspaceId }: ProjectsViewProps) {
// Use ProjectManager but hide its header and footer since PageLayout provides them
return (
<ProjectManager
onProjectSelect={onProjectSelect}
hideHeader={true}
hideFooter={true}
autoCreate={autoCreate}
workspaceId={workspaceId}
/>
);
}