mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-21 10:21:54 +03:00
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,
|
||
|
};
|
||
|
};
|