diff --git a/web/src/features/channel/TopBar.tsx b/web/src/features/channel/TopBar.tsx index 076ce7b..6add86d 100644 --- a/web/src/features/channel/TopBar.tsx +++ b/web/src/features/channel/TopBar.tsx @@ -1,3 +1,4 @@ +import { formatRemaining } from '@/lib/format'; import { useWorkspace } from '@/store/workspace'; import { Button } from '@/ui/Button'; import { Icon } from '@/ui/Icon'; @@ -34,6 +35,7 @@ export function TopBar({ onBack, onOpenPanel, onOpenSettings, onOpenMembers, onI {channel?.name || `${channel?.id.slice(0, 8)}…`} {channel?.name ? {channel.id.slice(0, 8)}… : null} {channel?.creatorAccount ? 创建者 {channel.creatorAccount} : null} + {channel?.expiresAt ? {formatRemaining(channel.expiresAt).replace(/^剩 /, '有效期 ')} : null} {raw ? ( 明文 · 服务端可见 ) : (