Extract dashboard EmptyState component

This commit is contained in:
ejclaw
2026-04-28 14:28:57 +09:00
parent dde015fb24
commit 705cb596b9
3 changed files with 9 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import { useEffect, useState, type ReactNode } from 'react';
import { useEffect, useState } from 'react';
import type {
DashboardOverview,
@@ -7,6 +7,7 @@ import type {
} from './api';
import type { Locale, Messages } from './i18n';
import { RoomCardV2, type RoomEntryWithService } from './RoomCardV2';
import { EmptyState } from './EmptyState';
import type { RoomActivityMap } from './useRoomActivity';
type InboxItem = DashboardOverview['inbox'][number];
@@ -47,10 +48,6 @@ export interface RoomBoardV2Props {
t: Messages;
}
function EmptyState({ children }: { children: ReactNode }) {
return <div className="empty-state">{children}</div>;
}
function roomFilterLabel(
filter: RoomFilter,
statusLabel: (status: string, t: Messages) => string,