import { type FC, useRef, useState } from 'react' import Button from '@/components/ui/Button' import Dialog from '@/components/ui/Dialog' import { useStore } from '@/store' import '@/components/wordList/editWordlList.css' import Input from '../ui/Input' import Textarea from '../ui/Textarea' export interface RenameWordListProps { currentWordList: string } const EditWordList: FC = ({ currentWordList }) => { const [internalStatus, setInternalStatus] = useState('') const [newName, setNewName] = useState('') const dialogRef = useRef(null) return ( <>

Edit Word List: {currentWordList}

Name of the word list, used in placeholder and macros.

setNewName(e.target.value)} />

Words separated by newlines, words can be more than one word!