mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 23:56:33 +00:00
24 lines
483 B
TypeScript
24 lines
483 B
TypeScript
|
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>
|
||
|
);
|
||
|
}
|