+
{props.icon}
-
{props.children}
+
{props.children}
);
}
@@ -36,6 +40,7 @@ function ButtonWithIcon(props) {
href={props.href}
className={props.className}
onClick={props.onClick}
+ w={props.w}
>
+ {text}
+
+ );
+}
+
+export {
+ SettingsCheckBox,
+ SettingsTextInput,
+ SettingsSelectInput,
+ SettingsPlaceholder,
+};
diff --git a/src/components/styles.js b/src/components/styles.js
index a1cbf46..746104f 100644
--- a/src/components/styles.js
+++ b/src/components/styles.js
@@ -1,4 +1,4 @@
let inputStyle =
- "form-control block px-3 py-1.5 text-base font-normal text-gray-700 dark:text-white bg-white dark:bg-zinc-900 bg-clip-padding border border-solid border-gray-300 rounded-lg transition ease-in-out focus:border-blue-600 focus:outline-none";
+ "w-full form-control block px-3 py-1.5 text-base font-normal text-gray-700 dark:text-white bg-white dark:bg-zinc-900 bg-clip-padding border border-solid border-gray-300 rounded-lg transition ease-in-out focus:border-blue-600 focus:outline-none";
export { inputStyle };
diff --git a/src/localisation/en.js b/src/localisation/en.js
index bff5fc3..f09f431 100644
--- a/src/localisation/en.js
+++ b/src/localisation/en.js
@@ -41,6 +41,8 @@ let en = {
Delete: "Delete",
Open: "Open",
NoNotesYet: "No notes yet",
+ AIComplete: "Continue Note (AI)",
+ AdditionalFeatures: "Additional features",
};
export default en;
diff --git a/src/localisation/ru.js b/src/localisation/ru.js
index 25a024a..ebf2f00 100644
--- a/src/localisation/ru.js
+++ b/src/localisation/ru.js
@@ -42,6 +42,8 @@ let ru = {
Delete: "Удалить",
Open: "Открыть",
NoNotesYet: "Заметок пока нет",
+ AIComplete: "Продолжить заметку (ИИ)",
+ AdditionalFeatures: "Дополнительные функции",
};
export default ru;
diff --git a/src/pages/chat.jsx b/src/pages/chat.jsx
new file mode 100644
index 0000000..2db24c4
--- /dev/null
+++ b/src/pages/chat.jsx
@@ -0,0 +1,3 @@
+function Chat() {}
+
+export default Chat;
diff --git a/src/pages/create.jsx b/src/pages/create.jsx
index 74e83a6..c5bcd2b 100644
--- a/src/pages/create.jsx
+++ b/src/pages/create.jsx
@@ -1,5 +1,8 @@
import { ButtonWithIcon } from "../components/button";
-import { ChevronDoubleRightIcon } from "@heroicons/react/24/outline";
+import {
+ ChevronDoubleRightIcon,
+ DocumentTextIcon,
+} from "@heroicons/react/24/outline";
import { CheckBox } from "../components/checkbox";
import { useState } from "react";
import RenderMarkdown from "../components/markdown";
@@ -12,8 +15,12 @@ import rehypeParse from "rehype-parse";
import remarkStringify from "remark-stringify";
import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
-import { SettingsCheckBox } from "../components/settingsInputs";
+import {
+ SettingsCheckBox,
+ SettingsPlaceholder,
+} from "../components/settingsInputs";
import { inputStyle } from "../components/styles";
+import { Complete } from "../components/openai";
function CreateNote() {
const [preview, setPreview] = useState(false);
@@ -126,6 +133,23 @@ function CreateNote() {
className="m-1"
/>
+
+ {settings.additionalFeatures && (
+