import { createContext } from "react";

type message = {
  error: (content: string) => void;
  success: (content: string) => void;
  warning: (content: string) => void;
  info: (content: string) => void;
};

const value: message = {
  error: () => {},
  success: () => {},
  warning: () => {},
  info: () => {},
};

export default createContext(value);
