/**
 * useToast Hook
 * Toast context hook - separated for Fast Refresh compatibility
 */

import { useContext } from "react";
import { ToastContext } from "./ToastContext";

export const useToast = () => {
  const ctx = useContext(ToastContext);
  if (!ctx) throw new Error("useToast must be used within <ToastProvider>");
  return ctx;
};

