refactor: tool options components

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-23 15:14:14 +01:00
parent 4604c32a9c
commit 1c1ec0c1e6
8 changed files with 142 additions and 135 deletions

View File

@@ -23,7 +23,7 @@ export default function ToolTextInput({
.writeText(value)
.then(() => showSnackBar('Text copied', 'success'))
.catch((err) => {
showSnackBar('Failed to copy: ', err);
showSnackBar('Failed to copy: ' + err, 'error');
});
};
const handleFileChange = (event: React.ChangeEvent<HTMLInputElement>) => {