import { useI18n } from '../../../i18n' interface PlotHistoryEntry { workId: string title: string imageIndex: number attachment: { path: string name?: string } } interface PlotHistoryStripProps { entries: PlotHistoryEntry[] selectedWorkId: string | null selectedImageIndex: number draggingWorkId: string | null onSelect: (workId: string, imageIndex: number) => void onDragStart: (workId: string) => void onDrop: (workId: string) => void onDragEnd: () => void } export function PlotHistoryStrip({ entries, selectedWorkId, selectedImageIndex, draggingWorkId, onSelect, onDragStart, onDrop, onDragEnd, }: PlotHistoryStripProps) { const { t } = useI18n() return (
{t('studio.plot.history')}
{entries.length.toString().padStart(2, '0')}
{entries.map((entry, index) => { const selected = entry.workId === selectedWorkId && entry.imageIndex === selectedImageIndex return ( ) })}
) }