import { Count } from "@chopin/editor";
import type { DecisionView } from "@chopin/editor";
export function decisionAttention(previous: number, current: number): boolean {
return current > previous;
}
export function DecisionViewControl(
{
attention,
backgroundWork = 0,
backgroundWorkEnabled = true,
implementationEnabled = true,
onView,
unanswered,
view,
}: {
attention?: boolean;
backgroundWork?: number;
backgroundWorkEnabled?: boolean;
implementationEnabled?: boolean;
onView: (view: DecisionView) => void;
unanswered: number;
view: DecisionView;
},
) {
return (
{implementationEnabled && (
)}
{backgroundWorkEnabled && (
)}
);
}