Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 973 Bytes
3d4392e 6215321 3d4392e 6215321 3d4392e 6215321 3d4392e 6215321 3d4392e 6215321 3d4392e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
import { PiLightningFill } from "react-icons/pi"
import { cn } from "@/lib/utils/cn"
export function StaticOrInteractiveTag({
isInteractive = false,
size = "md",
className = "",
}: {
isInteractive?: boolean
size?: "sm" | "md"
className?: string
}) {
const isStatic = !isInteractive
return (
<div className={cn(`
flex flex-none flex-row
items-center justify-center
uppercase
font-medium
border
`, {
"rounded-xs text-2xs space-x-0.5 pl-0.5 pr-1 py-0.5": size === "sm",
"rounded text-xs space-x-1 pl-1 pr-2 py-1": size === "md",
" text-yellow-600 border-yellow-600": isInteractive,
// " text-red-500 border-red-500": isLive,
" text-neutral-600 border-neutral-600": isStatic,
}, className)}>
<PiLightningFill />
<span className="-mb-[1px]">
{
isInteractive ? "Interactive"
// : isLive ? "Live"
: "Static content"
}
</span>
</div>
)
} |