import { type ComponentPropsWithoutRef, type FC, forwardRef, type ReactNode, } from "react" import FileIcon from "~icons/lucide/file" import { cn } from "../../libs/utils" export type CodeBlockProps = ComponentPropsWithoutRef<"pre"> & { title?: string lang: string containerClassName?: string } export const CodeBlock = forwardRef( ({ title, lang, containerClassName, className, ...props }, ref) => { return (
{title && {title}}
      
) }, ) CodeBlock.displayName = "CodeBlock" type CodeBlockTitleProps = { lang: string children?: ReactNode } const CodeBlockTitle: FC = (props) => { return } const CodeBlockFileTitle: FC = ({ children }) => { return (
{children}
) }