mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-20 01:08:41 +02:00
add new create site workflow
This commit is contained in:
parent
cdf904a2bc
commit
edba818615
16 changed files with 3416 additions and 283 deletions
|
@ -4,7 +4,11 @@ import { useState, useRef } from "react";
|
|||
import { Button } from "@/components/ui/button";
|
||||
import { Copy, Check } from "lucide-react";
|
||||
|
||||
export default function CopyTextBox({ text = "", wrapText = false }) {
|
||||
export default function CopyTextBox({
|
||||
text = "",
|
||||
wrapText = false,
|
||||
outline = true
|
||||
}) {
|
||||
const [isCopied, setIsCopied] = useState(false);
|
||||
const textRef = useRef<HTMLPreElement>(null);
|
||||
|
||||
|
@ -23,7 +27,9 @@ export default function CopyTextBox({ text = "", wrapText = false }) {
|
|||
};
|
||||
|
||||
return (
|
||||
<div className="relative w-full border rounded-md bg-card">
|
||||
<div
|
||||
className={`relative w-full border rounded-md ${!outline ? "bg-muted" : "bg-card"}`}
|
||||
>
|
||||
<pre
|
||||
ref={textRef}
|
||||
className={`p-4 pr-16 text-sm w-full ${
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue