app
routes
styles
context.tsx
createEmotionCache.ts
entry.client.tsx
entry.server.tsx
root.tsx
components
data
functions
public
.gitignore
.node-version
.prettierignore
OFL.txt
README.md
emotion-server.js
index.css
index.d.ts
package-lock.json
package.json
remix.config.js
server.ts
theme.ts
tsconfig.json
20 lines
387 B
TypeScript
20 lines
387 B
TypeScript
import { createContext } from "react";
|
|
|
|
export interface ServerStyleContextData {
|
|
key: string;
|
|
ids: Array<string>;
|
|
css: string;
|
|
}
|
|
|
|
export const ServerStyleContext = createContext<
|
|
ServerStyleContextData[] | null
|
|
>(null);
|
|
|
|
export interface ClientStyleContextData {
|
|
reset: () => void;
|
|
}
|
|
|
|
export const ClientStyleContext = createContext<ClientStyleContextData | null>(
|
|
null,
|
|
);
|