{ifElse(
derive(eventCount, (c: number) => c === 0),
// Empty state
Calendar
No Events Yet
Run the apple-sync CLI to import your calendar events:
./tools/apple-sync.ts calendar
,
/*
* Paginated event preview - showing 10 events at a time.
*
* NOTE: This pagination is intentional due to performance limitations.
* Rendering 200+ events with reactive cells causes Chrome CPU to spike
* to 100% for extended periods. Ideally we'd show all events at once,
* but until the framework supports virtualization or more efficient
* rendering, we paginate to keep the UI responsive.
*
* See: https://linear.app/common-tools/issue/CT-1111/performance-derive-inside-map-causes-8x-more-calls-than-expected-never
*
* The full event data is still available via the `events` output for
* other patterns to access via linking.
*/