import EnteSpinner from "@ente/shared/components/EnteSpinner"; import { type BoxProps, styled } from "@mui/material"; import React from "react"; import CopyButton from "./CopyButton"; import { CodeWrapper, CopyButtonWrapper, Wrapper } from "./styledComponents"; type Iprops = React.PropsWithChildren<{ code: string | null; }>; export default function CodeBlock({ code, ...props }: BoxProps<"div", Iprops>) { if (!code) { return ( ); } return ( {code} ); } const FreeFlowText = styled("div")` word-break: break-word; min-width: 30%; text-align: left; `;