forked from langchain-ai/chat-langchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmptyState.tsx
105 lines (104 loc) · 3.04 KB
/
EmptyState.tsx
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import { MouseEvent } from "react";
import {
Heading,
Link,
Card,
CardHeader,
Flex,
Spacer,
} from "@chakra-ui/react";
export function EmptyState(props: { onChoice: (question: string) => any }) {
const handleClick = (e: MouseEvent) => {
props.onChoice((e.target as HTMLDivElement).innerText);
};
return (
<div className="rounded flex flex-col items-center max-w-full md:p-8">
<Flex marginTop={"25px"} grow={1} maxWidth={"800px"} width={"100%"}>
<Card
onMouseUp={handleClick}
width={"48%"}
backgroundColor={"rgb(58, 58, 61)"}
_hover={{ backgroundColor: "rgb(78,78,81)" }}
cursor={"pointer"}
justifyContent={"center"}
>
<CardHeader justifyContent={"center"}>
<Heading
fontSize="lg"
fontWeight={"medium"}
mb={1}
color={"gray.200"}
textAlign={"center"}
>
How do I use a RecursiveUrlLoader to load content from a page?
</Heading>
</CardHeader>
</Card>
<Spacer />
<Card
onMouseUp={handleClick}
width={"48%"}
backgroundColor={"rgb(58, 58, 61)"}
_hover={{ backgroundColor: "rgb(78,78,81)" }}
cursor={"pointer"}
justifyContent={"center"}
>
<CardHeader justifyContent={"center"}>
<Heading
fontSize="lg"
fontWeight={"medium"}
mb={1}
color={"gray.200"}
textAlign={"center"}
>
What does RunnablePassthrough.assign() do?
</Heading>
</CardHeader>
</Card>
</Flex>
<Flex marginTop={"25px"} grow={1} maxWidth={"800px"} width={"100%"}>
<Card
onMouseUp={handleClick}
width={"48%"}
backgroundColor={"rgb(58, 58, 61)"}
_hover={{ backgroundColor: "rgb(78,78,81)" }}
cursor={"pointer"}
justifyContent={"center"}
>
<CardHeader justifyContent={"center"}>
<Heading
fontSize="lg"
fontWeight={"medium"}
mb={1}
color={"gray.200"}
textAlign={"center"}
>
Explain multi-vector retrieval and how it can improve results.
</Heading>
</CardHeader>
</Card>
<Spacer />
<Card
onMouseUp={handleClick}
width={"48%"}
backgroundColor={"rgb(58, 58, 61)"}
_hover={{ backgroundColor: "rgb(78,78,81)" }}
cursor={"pointer"}
justifyContent={"center"}
>
<CardHeader justifyContent={"center"}>
<Heading
fontSize="lg"
fontWeight={"medium"}
mb={1}
color={"gray.200"}
textAlign={"center"}
>
How do I run a model locally on my laptop with Ollama?
</Heading>
</CardHeader>
</Card>
</Flex>
</div>
);
}