feat: add deployment endpoint

This commit is contained in:
BennyKok
2023-12-14 22:36:57 +08:00
parent 0835d966f1
commit 7e05fae7b3
29 changed files with 1776 additions and 190 deletions
+24
View File
@@ -0,0 +1,24 @@
"use client";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { Copy } from "lucide-react";
export function CopyButton({
className,
...props
}: {
text: string;
className?: string;
}) {
return (
<Button
onClick={() => {
navigator.clipboard.writeText(props.text);
}}
className={cn(" p-2 min-h-0 aspect-square", className)}
>
<Copy size={14} />
</Button>
);
}