e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
33 lines
911 B
TypeScript
33 lines
911 B
TypeScript
import { CLOUD_URL } from "@/lib/constants";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export const cloudButtonVariants = {
|
|
marketing:
|
|
"border-border hover:bg-muted hidden rounded-md border px-3 py-1.5 text-sm font-medium transition-colors md:inline-flex",
|
|
docs: "border-border/50 bg-muted/50 hover:bg-muted flex h-8 items-center rounded-lg border px-3 text-sm font-medium transition-colors",
|
|
mobile:
|
|
"border-border hover:bg-muted inline-flex w-fit rounded-md border px-3 py-1.5 text-sm font-medium transition-colors",
|
|
};
|
|
|
|
export function CloudButton({
|
|
variant,
|
|
className,
|
|
onClick,
|
|
}: {
|
|
variant: keyof typeof cloudButtonVariants;
|
|
className?: string;
|
|
onClick?: () => void;
|
|
}) {
|
|
return (
|
|
<a
|
|
href={CLOUD_URL}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
onClick={onClick}
|
|
className={cn(cloudButtonVariants[variant], className)}
|
|
>
|
|
Cloud
|
|
</a>
|
|
);
|
|
}
|