pankod/refine

View on GitHub
packages/core/src/contexts/auditLog/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React, { PropsWithChildren } from "react";

import { IAuditLogContext } from "./types";

export const AuditLogContext = React.createContext<IAuditLogContext>({});

export const AuditLogContextProvider: React.FC<
  PropsWithChildren<IAuditLogContext>
> = ({ create, get, update, children }) => {
  return (
    <AuditLogContext.Provider value={{ create, get, update }}>
      {children}
    </AuditLogContext.Provider>
  );
};