import { useState } from "react" 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) return ( ) }