diff options
| author | Yash <[email protected]> | 2024-04-11 01:34:49 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-11 01:34:49 +0000 |
| commit | e6fc9c42278d979b155fd71b1f8f13e72c990208 (patch) | |
| tree | aedbe7081527820c473555a32b3edafb2d3ae479 /apps/web/src/components/Sidebar/AddMemoryDialog.tsx | |
| parent | better md (diff) | |
| download | supermemory-e6fc9c42278d979b155fd71b1f8f13e72c990208.tar.xz supermemory-e6fc9c42278d979b155fd71b1f8f13e72c990208.zip | |
ok
Diffstat (limited to 'apps/web/src/components/Sidebar/AddMemoryDialog.tsx')
| -rw-r--r-- | apps/web/src/components/Sidebar/AddMemoryDialog.tsx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/apps/web/src/components/Sidebar/AddMemoryDialog.tsx b/apps/web/src/components/Sidebar/AddMemoryDialog.tsx new file mode 100644 index 00000000..1bd4b688 --- /dev/null +++ b/apps/web/src/components/Sidebar/AddMemoryDialog.tsx @@ -0,0 +1,39 @@ +import { useEffect, useRef } from "react"; +import { + DialogClose, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from "../ui/dialog"; +import { Input } from "../ui/input"; +import { Label } from "../ui/label"; + +export default function AddMemoryPage() { + return ( + <> + <DialogHeader> + <DialogTitle>Add a web page to memory</DialogTitle> + <DialogDescription> + This will take you the web page you are trying to add to memory, where + the extension will save the page to memory + </DialogDescription> + </DialogHeader> + <Label className="mt-5">URL</Label> + <Input + placeholder="Enter the URL of the page" + type="url" + data-autofocus + className="bg-rgray-4 mt-2 w-full" + /> + <DialogFooter> + <DialogClose className="bg-rgray-4 hover:bg-rgray-5 focus-visible:bg-rgray-5 focus-visible:ring-rgray-7 rounded-md px-4 py-2 ring-transparent transition focus-visible:outline-none focus-visible:ring-2"> + Add + </DialogClose> + <DialogClose className="hover:bg-rgray-4 focus-visible:bg-rgray-4 focus-visible:ring-rgray-7 rounded-md px-3 py-2 ring-transparent transition focus-visible:outline-none focus-visible:ring-2"> + Cancel + </DialogClose> + </DialogFooter> + </> + ); +} |