mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-08-22 08:58:07 +00:00
auto: sync 2026-06-02 22:16
This commit is contained in:
@@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Sparkles, X } from "lucide-react";
|
import { Sparkles, X } from "lucide-react";
|
||||||
import type { Currency, CurrencyIndicators } from "@/lib/types";
|
import type { Currency, BiasPhase } from "@/lib/types";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
currency: Currency;
|
currency: Currency;
|
||||||
indicators: CurrencyIndicators;
|
phase: BiasPhase;
|
||||||
macroScore: number;
|
macroScore: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function NarrativeButton({ currency, indicators, macroScore }: Props) {
|
export default function NarrativeButton({ currency, phase, macroScore }: Props) {
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
const [analysis, setAnalysis] = useState<string | null>(null);
|
const [analysis, setAnalysis] = useState<string | null>(null);
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
@@ -26,7 +26,7 @@ export default function NarrativeButton({ currency, indicators, macroScore }: Pr
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
mode: "summary",
|
mode: "summary",
|
||||||
currency,
|
currency,
|
||||||
data: { indicators, macroScore },
|
data: { phase, macroScore },
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user