+ {uploading ? (
+
+ ) : (
+
+ )}
+
+
+ {label}
+ {status === 'loaded' && (
+
+ {filename} · {rows.toLocaleString()} rows
+
+ )}
+ {status === 'uploading' && Parsing…}
+ {status === 'empty' && Not uploaded}
+ {status === 'error' && {error}}
+
+
+
+
+ {filename && onClear && (
+
+ )}
+
+ );
+}
+
+export default function HeaderUploads() {
+ const {
+ timelog, deliverable, projectSummary,
+ uploadTimelog, uploadDeliverable, uploadProjectSummary,
+ clearTimelog,
+ } = useDataContext();
+
+ return (
+