Skip to content

See how your app actually fits together. An interactive, plain-English map of your codebase, drawn by Claude or Codex.

445 B
Raw Blame
import { httpsCallable } from 'firebase/functions';
import { functions, callFunction } from '../lib/firebase';

const approveItem = httpsCallable<
  { id: string },
  { ok: boolean }
>(functions, 'approveItem');

export default function Items() {
  const retire = (id: string) => callFunction('retireItem', { id });
  const stats = () => callFunction('legacyStats');
  return <button onClick={() => approveItem({ id: '1' })}>Approve</button>;
}