20 lines
387 B
TypeScript
20 lines
387 B
TypeScript
import React from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
interface CodeProps {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export function Code({ children, className }: CodeProps) {
|
|
return (
|
|
<code
|
|
className={cn(
|
|
"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm",
|
|
className
|
|
)}
|
|
>
|
|
{children}
|
|
</code>
|
|
);
|
|
}
|