import { useState } from "react" import { CheckIcon } from "lucide-react" import { useTranslation } from "react-i18next" type Props = { onClick?: () => void disabled?: boolean className?: string text?: string textOnSave?: string btnType?: "button" | "submit" | "reset" } export const SaveButton = ({ onClick, disabled, className, text = "save", textOnSave = "saved", btnType = "button" }: Props) => { const [clickedSave, setClickedSave] = useState(false) const { t } = useTranslation("common") return ( ) }