返回 DeepSeek-Reasonix
HeartbeatShared.tsx
根目录 / desktop / frontend / src / custom / features / heartbeat / HeartbeatShared.tsx
1 import type { HeartbeatTask } from "./heartbeat.types";
2
3 export function mergeEngineRunState(prev: HeartbeatTask, fresh: HeartbeatTask): HeartbeatTask {
4 return {
5 ...prev,
6 ...(fresh.runHistory ? { runHistory: fresh.runHistory } : {}),
7 ...(fresh.topicId ? { topicId: fresh.topicId } : {}),
8 ...(fresh.lastRunAt ? { lastRunAt: fresh.lastRunAt } : {}),
9 };
10 }
11
12 export function CirclePlaySolid({ size = 15 }: { size?: number }) {
13 return (
14 <svg
15 width={size}
16 height={size}
17 viewBox="0 0 24 24"
18 fill="none"
19 stroke="currentColor"
20 strokeWidth={2.4}
21 aria-hidden="true"
22 >
23 <circle cx="12" cy="12" r="10" />
24 <path d="M10 8l6 4-6 4z" fill="currentColor" stroke="none" />
25 </svg>
26 );
27 }
28
28 lines Plain Text