Files
drawdb/src/components/EditorHeader/Modal/Rename.jsx

15 lines
303 B
JavaScript

import { Input } from "@douyinfe/semi-ui";
import { useTranslation } from "react-i18next";
export default function Rename({ title, setTitle }) {
const { t } = useTranslation();
return (
<Input
placeholder={t("name")}
value={title}
onChange={(v) => setTitle(v)}
/>
);
}