feat(rendering): component based

This commit is contained in:
2024-01-26 09:17:40 +01:00
parent 0686611564
commit b50ea6a210
8 changed files with 100 additions and 18 deletions

View File

@@ -1,8 +1,8 @@
import { createContext, useContext } from "react";
const TerminalContext = createContext<{ cols: number; rows: number } | null>(
null,
);
const TerminalContext = createContext<
{ cols: number; rows: number } | undefined
>(undefined);
export const TerminalContextProvider = TerminalContext.Provider;