import { Project, PortfolioProject } from './project';

export interface ProjectItemProps {
  project: PortfolioProject;
  index: number;
  onEdit: (projectId: string) => void;
  onRemove: (projectId: string) => void;
  onApprove: (projectId: string) => void;
  onReject: (projectId: string) => void;
}

export interface ProjectFormProps {
  project: PortfolioProject;
  index: number;
  editMode: 'add' | 'edit';
  availableProjects?: Project[];
  onSave: () => void;
  selectedProject: Project | null;
  onUpdate: (index: number) => void;
  onCancel: () => void;
  onFieldUpdate: (field: keyof Project, value: string, index: number) => void;
  onSelectExisting: (index: number, projectId: string) => void;
}

export const defaultProject = {
  id: Date.now().toString(),
  title: 'New Project',
  description: 'Project description',
  image: 'https://picsum.photos/600/352',
  url: '',
  technologies: ['React', 'NextJS', 'TailwindCSS'],
  isPlaceholder: true,
};
