import React from "react";
import { ConfigProviderProps } from "./types";
import { ConfigContext } from "./context";

const ConfigProvider: React.FC<ConfigProviderProps> = ({ children, t = (v) => v }) => {
  return <ConfigContext.Provider value={{ t }}>{children}</ConfigContext.Provider>;
};

export default ConfigProvider;
