React hook that runs a callback when the user clicks outside the referenced element.
npx shadcn@latest add @kokonutui/use-click-outside
use-click-outside