@@ -158,7 +172,7 @@ export function BillLookup({ mode = "auto" }: BillLookupProps) {
{error}
)}
- Example: If the URL is ?bill=1763442653885-vlpkbu4,
+ Example: If the URL is /b/1763442653885-vlpkbu4,
enter 1763442653885-vlpkbu4
diff --git a/components/BillSourceIndicator.tsx b/components/BillSourceIndicator.tsx
new file mode 100644
index 0000000..cd3c8fe
--- /dev/null
+++ b/components/BillSourceIndicator.tsx
@@ -0,0 +1,42 @@
+"use client"
+
+import { Copy, Link2 } from "lucide-react"
+import { useBill } from "@/contexts/BillContext"
+import { cn } from "@/lib/utils"
+
+const billSourceConfig = {
+ shared: {
+ icon: Link2,
+ label: "Viewing shared bill",
+ className: "text-sky-700 bg-sky-50",
+ },
+ shared_copy: {
+ icon: Copy,
+ label: "Editing local copy",
+ className: "text-amber-700 bg-amber-50",
+ },
+} as const
+
+export function BillSourceIndicator({ className }: { className?: string }) {
+ const { state } = useBill()
+
+ if (state.billSource === "draft") {
+ return null
+ }
+
+ const config = billSourceConfig[state.billSource]
+ const Icon = config.icon
+
+ return (
+