1import React, { useEffect, useState } from "react";
2const yogaCard = require("./YogaCard.purs");
3const fetch = typeof window !== "undefined" && window.fetch;
5const Code = ({ codeString, language, ...props }) => {
6 const [Editor, setEditor] = useState(null);
7 console.log("stuff", props);
10 const Eddy = yogaCard.mkEditor(fetch)();
11 setEditor(prev => console.log("Prev", prev) || Eddy);
16 Editor !== null ? <Editor height="300px" initialCode={codeString}></Editor> : ""
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list