SessionCard
Show the bound register's open session and offer an X-report.
Import
import { SessionCard, type OpenSessionRow } from '@tallyui/components';Usage
const session: OpenSessionRow = {
id: 'morning', registerName: 'Front', status: 'open', openedAt: '2026-12-02T08:30:00Z',
openedBy: 'cashier-7', openedByName: 'Ana', sales: 3, expectedMinor: 12550,
};
<SessionCard session={session} currency="GBP" timezone="Europe/London"
blind={blind} cashierId={selectedCashierId} onPrintXReport={printXReport} />Blind cashiers can still see who opened the till, when it opened and how many sales it has. Expected cash is hidden and Print X-report is disabled because the report includes expected cash.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
session | OpenSessionRow | required | The bound register's open or counting session |
currency | string | required | ISO currency for expected cash in minor units |
timezone | string | required | Store time zone for the opening time; use 'device' for local time |
blind | boolean | false | Hide expected cash and disable printing |
cashierId | string | — | Show the card only when the opener's cashier id matches |
onPrintXReport | () => void | Promise<void> | — | Print the X-report; omit to hide the button |