mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Initial Commit: Implemented library list
This commit is contained in:
1 parent
704d128289
commit
fceaab6d78
36 files changed
+3910
No files matched your search
@@ -0,0 +1,29 @@
|
||||
interface Props {
|
||||
showing: number
|
||||
total: number
|
||||
sourceName: string
|
||||
loading?: boolean
|
||||
}
|
||||
|
||||
export function StatusBar({ showing, total, sourceName, loading }: Props) {
|
||||
return (
|
||||
<div className="flex items-center gap-3 border-t border-line bg-ink-900 px-4 py-2 text-xs text-muted">
|
||||
<span className="font-medium text-text">{sourceName}</span>
|
||||
<span className="text-faint">·</span>
|
||||
{loading ? (
|
||||
<span>Loading…</span>
|
||||
) : (
|
||||
<span className="tabular-nums">
|
||||
{showing === total ? (
|
||||
<>{total.toLocaleString()} tracks</>
|
||||
) : (
|
||||
<>
|
||||
{showing.toLocaleString()} of {total.toLocaleString()} tracks
|
||||
</>
|
||||
)}
|
||||
</span>
|
||||
)}
|
||||
<span className="ml-auto text-faint">konduktor · phase 2</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user