import { FrameEmptyState } from '@/components/frame/FrameEmptyState';
import { FrameEntryCard } from '@/components/frame/FrameEntryCard';
import type { FrameModuleViewProps } from '@/components/frame/types';

export function FrameEntryList({ workflow }: FrameModuleViewProps) {
  if (workflow.entries.length === 0) {
    return <FrameEmptyState />;
  }

  return (
    <div className="space-y-4">
      {workflow.entries.map((entry, index) => (
        <FrameEntryCard key={entry.id} entry={entry} index={index} workflow={workflow} />
      ))}
    </div>
  );
}
