blob: ba476dda3fb5b67c30ba3a691486244dfc8c2eba (
plain) (
blame)
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
|
import React from "react";
import Divider from "../shadcn/divider";
import { ArrowRightIcon } from "../icons";
import Image from "next/image";
function QueryInput() {
return (
<div>
<div className="bg-secondary rounded-[20px] h-[68 px]">
{/* input and action button */}
<form className="flex gap-4 p-2.5">
<textarea
name="q"
cols={30}
rows={4}
className="bg-transparent h-12 focus:h-[128px] no-scrollbar pt-3 px-2 text-base placeholder:text-[#5D6165] text-[#9DA0A4] focus:text-white duration-200 tracking-[3%] outline-none resize-none w-full"
placeholder="Ask your second brain..."
// onKeyDown={(e) => {
// if (e.key === "Enter") {
// e.preventDefault();
// if (!e.shiftKey) push(parseQ());
// }
// }}
// onChange={(e) => setQ(e.target.value)}
// value={q}
// disabled={disabled}
/>
<button
// type="submit"
// onClick={e => e.preventDefault()}
// disabled={disabled}
className="h-12 w-12 rounded-[14px] bg-[#21303D] all-center shrink-0 hover:brightness-125 duration-200 outline-none focus:outline focus:outline-primary active:scale-90"
>
<Image src={ArrowRightIcon} alt="Right arrow icon" />
</button>
</form>
{/* <Divider /> */}
</div>
{/* selected sources */}
{/* <div className="flex items-center gap-6 p-2 h-auto bg-secondary"> */}
{/* <MultipleSelector
key={options.length}
disabled={disabled}
defaultOptions={options}
onChange={(e) => setSelectedSpaces(e.map((x) => parseInt(x.value)))}
placeholder="Focus on specific spaces..."
emptyIndicator={
<p className="text-center text-lg leading-10 text-gray-600 dark:text-gray-400">
no results found.
</p>
}
/> */}
{/* </div> */}
</div>
);
}
export default QueryInput;
|