Create components for TTS and attachment settings

This commit is contained in:
2023-11-10 16:01:35 +00:00
parent 4aa5b285ac
commit 5ee1fa60db
3 changed files with 65 additions and 18 deletions

View File

@ -0,0 +1,24 @@
import { useReminder } from "./ReminderContext";
export const TTS = () => {
const [{ tts }, setReminder] = useReminder();
return (
<div class="is-boxed">
<label class="label">
Enable TTS{" "}
<input
type="checkbox"
name="tts"
checked={tts}
onInput={(ev) => {
setReminder((reminder) => ({
...reminder,
tts: ev.currentTarget.checked,
}));
}}
></input>
</label>
</div>
);
};