"use client"; import { type PropsWithChildren, useState } from "react"; import className from "@calcom/ui/classNames"; import { Button } from "@calcom/ui/components/button"; type Props = { customCodeSnippet?: string; className?: string; }; export const RenderComponentWithSnippet: React.FC> = (props) => { const [open, setOpen] = useState(false); // const snippet = // props.customCodeSnippet ?? // reactElementToJSXString(props.children, { // showFunctions: true, // useBooleanShorthandSyntax: true, // displayName: (node) => { // // @ts-ignore // return node?.type.displayName ?? node?.type ?? "Unknown"; // }, // }); return (
{props.children}
{/*
            {snippet
              .split("\n")
              .map((_line, i) => i + 1)
              .join("\n")}
          
{snippet}
*/}
); };