quivr/frontend/app/chat/[chatId]/components/ActionsBar/hooks/useActionsBar.tsx
Mamadou DICKO 80be40ad34
feat: update chat ui (#907)
* 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
2023-08-11 10:06:20 +02:00

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,
};
};