"use client" import { Input } from "@/components/ui/input" import { Button } from "@/components/ui/button" import { useState } from "react" import { useTranslation } from "react-i18next" export interface IdInputProps { setKeyword: (keyword: string) => void keyword: string refetchTrigger?: (randStr: string) => void } export const IdInput: React.FC = ({ setKeyword, keyword, refetchTrigger }) => { const { t } = useTranslation() const [input, setInput] = useState(keyword) return (
setInput(e.target.value)} />
) }