quivr/frontend/app/chat/[chatId]/components/ActionsBar/hooks/useActionsBar.tsx

16 lines
336 B
TypeScript
Raw Normal View History

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