Created
February 22, 2024 22:11
-
-
Save johnpolacek/1266f534a4b3559b14af65029bc1fc80 to your computer and use it in GitHub Desktop.
Revisions
-
johnpolacek created this gist
Feb 22, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ import React from "react" const PrintObject: React.FC<{ object: Record<string, unknown> }> = ({ object }) => { return ( <pre className="w-full max-w-5xl overflow-scroll text-sm border bg-black text-white rounded p-2 "> <code>{JSON.stringify(object, null, 2)}</code> </pre> ) } export default PrintObject