Locks. A lock that was submerged or exposed to heavy smoke is usually replaced, particularly the cylinder, because corrosion inside continues after it has been cleaned. Some high-quality mortise locks can be stripped, cleaned and rebuilt. Electronic locks that got wet or hot are usually replaced.
Doors. A wood door that swelled may return to size as it dries, or may warp for good. Waiting until the door has dried before deciding avoids replacing a door that would have recovered. A delaminated fibreglass or steel door usually needs replacing.
Frames. Swollen or split frames, especially at the bottom, often need sections replaced so the strike and hinges have sound material.