mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-21 10:21:54 +03:00
80be40ad34
* feat: remove react-mentions * feat: add chat header * feat: remove v2/chat * feat: add fature flag * feat: add new chat UI * feat: add prompt and brain name to messages
16 lines
336 B
TypeScript
16 lines
336 B
TypeScript
import { useState } from "react";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
export const useActionsBar = () => {
|
|
const [value, setValue] = useState("");
|
|
|
|
const handleChange = (newPlainTextValue: string) => {
|
|
setValue(newPlainTextValue);
|
|
};
|
|
|
|
return {
|
|
handleChange,
|
|
value,
|
|
};
|
|
};
|