PHP 8.2.30
Preview: test-context-provider.js Size: 946 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/frontend/components/spec/test-context-provider.js

import React from 'react';
import { StaticRouter } from 'react-router-dom/server.js';
import { combineStyles } from '@adminjs/design-system';
// @ts-ignore Note: Ignore while @adminjs/design-system/styled-components doesn't export types
import { ThemeProvider } from '@adminjs/design-system/styled-components';
import { I18nextProvider } from 'react-i18next';
import { defaultLocale } from '../../../locale/index.js';
import initTranslations from '../../utils/adminjs.i18n.js';
const theme = combineStyles({});
const TestContextProvider = props => {
  const {
    children,
    location
  } = props;
  const {
    i18n
  } = initTranslations(defaultLocale);
  return /*#__PURE__*/React.createElement(ThemeProvider, {
    theme: theme
  }, /*#__PURE__*/React.createElement(I18nextProvider, {
    i18n: i18n
  }, /*#__PURE__*/React.createElement(StaticRouter, {
    location: location || '/'
  }, children)));
};
export default TestContextProvider;

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
470 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
302 B lrw-r--r-- 2026-02-28 00:31:30
Edit Download
127 B lrw-r--r-- 2026-02-28 00:31:44
Edit Download
214 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
793 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
1.06 KB lrw-r--r-- 2026-02-28 00:31:48
Edit Download
1.51 KB lrw-r--r-- 2026-02-28 00:31:48
Edit Download
946 B lrw-r--r-- 2026-02-28 00:31:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).