Turn a function into one that runs only after calls have stopped for a delay, with cancel, flush and an optional leading call.
pnpm dlx shadcn@latest add "https://ui.tealmac.com/r/use-debounced-callback.json"