Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ChatGptConnectionButton.tsx

14 lines441 Bytes

1import { useGT } from "gt-react";
2import type { ComponentProps } from "react";
3import { OpenAI } from "../Icons";
4import { Button } from "../ui/button";
5​
6export function ChatGptConnectionButton({ children, ...props }: ComponentProps<typeof Button>) {
7 const gt = useGT();
8 return (
9 <Button {...props}>
10 <OpenAI className="size-4 shrink-0" aria-hidden="true" />
11 {children ?? gt("Continue with ChatGPT")}
12 </Button>
13 );