Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

chore(docs): Internal snippets comparison (#183)

Pavel 'Strajk' Doleceke76698a8c6c4
diff --git a/apps/docs/src/components/Code.tsx b/apps/docs/src/components/Code.tsx
index 707a94103..b80d03a5c 100644
--- a/apps/docs/src/components/Code.tsx
+++ b/apps/docs/src/components/Code.tsx
@@ -257,6 +257,19 @@ function CodeGroupPanels({
}: React.ComponentPropsWithoutRef<typeof CodePanel>) {
const hasTabs = Children.count(children) > 1
+ /* <INTERNAL> */
+ // @ts-ignore
+ if (typeof window !== 'undefined' && window.DEBUG_COMPARE_LANGS) {
+ return (
+ <div className="grid grid-cols-2">
+ {Children.map(children, child => (
+ <CodePanel {...props}>{child}</CodePanel>
+ ))}
+ </div>
+ )
+ }
+ /* </INTERNAL> */
+
if (hasTabs) {
return (
<Tab.Panels>