mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-21 18:55:36 +02:00
28 lines
924 B
JavaScript
28 lines
924 B
JavaScript
import EntryRow from './EntryRow';
|
|
|
|
export default function EntriesView({ entries, selectedEntryUid, onSelectEntry, archiveId }) {
|
|
return (
|
|
<section id="archive-view" className="view is-active">
|
|
<div className="entry-table">
|
|
<div className="entry-header-row">
|
|
<div className="col-added">Added</div>
|
|
<div className="col-title">Title</div>
|
|
<div className="col-type">Type</div>
|
|
<div className="col-size">Size</div>
|
|
<div className="col-url">Original URL</div>
|
|
</div>
|
|
<div id="entries-body">
|
|
{entries.map(entry => (
|
|
<EntryRow
|
|
key={entry.entry_uid}
|
|
entry={entry}
|
|
archiveId={archiveId}
|
|
isSelected={entry.entry_uid === selectedEntryUid}
|
|
onSelect={() => onSelectEntry(entry)}
|
|
/>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|