informe-comercial-alfa/app/m/CampoContext.js

6 lines
332 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import { createContext, useContext } from "react";
// Permite a cualquier pantalla de /m abrir la hoja de acciones de una actividad o el alta rápida (+).
export const CampoContext = createContext({ abrirActividad: () => {}, abrirNuevo: () => {}, hoy: "" });
export const useCampo = () => useContext(CampoContext);