Problem Marker

Code line with a rose wavy underline on the offending token above an alert card with message and source code.

const total = items.reduce(sum, i) => sum + i.price);
Expected 2 arguments, but got 1.ts(2554)

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Editor14 } from "@/components/beste/piece/editor14";

<Editor14
  prefix="const total = items."
  problem="reduce"
  suffix="(sum, i) => sum + i.price);"
  message="Expected 2 arguments, but got 1."
  source="ts(2554)"
/>