feat(renderer): StatusBar placeholder (word count wired in Phase 3)

This commit is contained in:
2026-06-05 11:53:34 +05:30
parent 16e071ae5e
commit 1999a7716e
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,14 @@
export function StatusBar() {
return (
<footer className="flex h-7 items-center justify-between border-t border-border bg-card/20 px-3 text-xs text-muted-foreground">
<div className="flex items-center gap-4">
<span>0 words</span>
<span>UTF-8</span>
</div>
<div className="flex items-center gap-4">
<span>Ln 1, Col 1</span>
<span>Markdown</span>
</div>
</footer>
);
}
+10
View File
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest';
import { render, screen } from '@testing-library/react';
import { StatusBar } from '@/components/layout/StatusBar';
describe('StatusBar', () => {
it('renders zero word count when no file is open', () => {
render(<StatusBar />);
expect(screen.getByText(/0 words/i)).toBeInTheDocument();
});
});