feat : dd up up
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { comparisonDelta, comparisonReferenceNames } from "@/lib/guides/comparison";
|
||||
import { comparisonReferenceNames } from "@/lib/guides/comparison";
|
||||
|
||||
type WeaponRows = Parameters<typeof comparisonReferenceNames>[0];
|
||||
|
||||
@@ -8,7 +8,6 @@ export function ComparisonContext({ rows, metric }: {
|
||||
}) {
|
||||
const references = rows && metric ? comparisonReferenceNames(rows, metric) : [];
|
||||
return <div className="flex flex-col gap-1 text-sm text-muted-foreground">
|
||||
{!rows && <p>100% = ค่าฐานของเงื่อนไขนี้ เช่น 109% หมายถึงสูงกว่าค่าฐาน 9% เปรียบเทียบภายในเงื่อนไขเดียวกัน</p>}
|
||||
{rows && metric ? <p>
|
||||
{metric === "overallPercent" ? "ดาเมจทั้งทีม" : "ดาเมจส่วนตัว"} - {references.length
|
||||
? `รายการที่แสดง 100%: ${references.join(" / ")}`
|
||||
@@ -16,8 +15,3 @@ export function ComparisonContext({ rows, metric }: {
|
||||
</p> : null}
|
||||
</div>;
|
||||
}
|
||||
|
||||
export function ComparisonValue({ value }: { value: string | null }) {
|
||||
const delta = comparisonDelta(value);
|
||||
return <p className="text-xs opacity-75">{delta ?? "ไม่มีข้อมูลเปรียบเทียบ"}</p>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user