Skip to content

Instantly share code, notes, and snippets.

View fabmnt's full-sized avatar
🏠
Working from home

Fabián Montoya fabmnt

🏠
Working from home
View GitHub Profile
@fabmnt
fabmnt / confirmation-alert.tsx
Last active May 27, 2025 22:05
Alert dialog with custom hook
'use client'
import { Loader2 } from 'lucide-react'
import { useEffect } from 'react'
import { create } from 'zustand'
import {
AlertDialog,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,