mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
12 lines
427 B
TypeScript
12 lines
427 B
TypeScript
import React from "react";
|
|
import { DevToolsContextProvider } from "@refinedev/devtools-shared";
|
|
|
|
export const DevtoolsProvider =
|
|
__DEV_CONDITION__ !== "development"
|
|
? ({ children }: React.PropsWithChildren) => children as any
|
|
: ({ children }: React.PropsWithChildren) => {
|
|
return (
|
|
<DevToolsContextProvider>{children}</DevToolsContextProvider>
|
|
);
|
|
};
|