import { useState } from "react" type Props = { onClick: () => void disabled?: boolean className?: string text?: string textOnSave?: string } export const SaveButton = ({ onClick, disabled, className, text = "Save", textOnSave = "Saved" }: Props) => { const [clickedSave, setClickedSave] = useState(false) return ( ) }