feat(run-code): add RunCode component for executing code

This commit is contained in:
cfngc4594 2025-02-26 21:54:44 +08:00
parent e2d1ded341
commit a0b1327db7

View File

@ -0,0 +1,23 @@
import { cn } from "@/lib/utils";
import { PlayIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
interface RunCodeProps {
className?: string;
}
export default function RunCode({
className,
...props
}: RunCodeProps) {
return (
<Button
{...props}
variant="secondary"
className={cn("h-8 px-3 py-1.5", className)}
>
<PlayIcon className="-ms-1 opacity-60" size={16} aria-hidden="true" />
Run
</Button>
);
}