Remix migration
This commit is contained in:
19
app/context.tsx
Normal file
19
app/context.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
);
|
Reference in New Issue
Block a user