Feature/amiriis missions

This commit is contained in:
AmirHossein Mahmoodi
2025-06-25 07:41:03 +00:00
parent 9ae5b8934c
commit 12d6d08bef
734 changed files with 48930 additions and 46048 deletions

View File

@@ -1,28 +1,28 @@
"use client";
import createCache from "@emotion/cache";
import { prefixer } from "stylis";
import stylisRTLPlugin from "stylis-plugin-rtl";
import { CacheProvider } from "@emotion/react";
const isBrowser = typeof document !== "undefined";
const createEmotionCache = () => {
let insertionPoint;
if (isBrowser) {
const emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
insertionPoint = emotionInsertionPoint ?? undefined;
}
return createCache({
insertionPoint,
key: "mui-rtl",
stylisPlugins: [prefixer, stylisRTLPlugin],
});
};
const cacheProviderRtl = (props) => {
return <CacheProvider value={createEmotionCache()}>{props.children}</CacheProvider>;
};
export default cacheProviderRtl;
"use client";
import createCache from "@emotion/cache";
import { prefixer } from "stylis";
import stylisRTLPlugin from "stylis-plugin-rtl";
import { CacheProvider } from "@emotion/react";
const isBrowser = typeof document !== "undefined";
const createEmotionCache = () => {
let insertionPoint;
if (isBrowser) {
const emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
insertionPoint = emotionInsertionPoint ?? undefined;
}
return createCache({
insertionPoint,
key: "mui-rtl",
stylisPlugins: [prefixer, stylisRTLPlugin],
});
};
const cacheProviderRtl = (props) => {
return <CacheProvider value={createEmotionCache()}>{props.children}</CacheProvider>;
};
export default cacheProviderRtl;