mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
4695d618dd
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai> Co-authored-by: Tyler Slaton <tyler@copilotkit.ai> Co-authored-by: Max Korp <maxkorp@8bytealchemy.com>
26 lines
635 B
TypeScript
26 lines
635 B
TypeScript
'use client';
|
|
|
|
import { useState } from 'react';
|
|
import { V150EarlyAccessModal } from '@/components/layout/v150-early-access-modal';
|
|
|
|
export function V150SignupLink({ children }: { children: React.ReactNode }) {
|
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<button
|
|
onClick={() => setIsModalOpen(true)}
|
|
className="text-primary hover:underline font-medium cursor-pointer bg-transparent border-none p-0"
|
|
>
|
|
{children}
|
|
</button>
|
|
|
|
<V150EarlyAccessModal
|
|
isOpen={isModalOpen}
|
|
onClose={() => setIsModalOpen(false)}
|
|
/>
|
|
</>
|
|
);
|
|
}
|
|
|