White House deputy press secretary Sarah Sanders said Tuesday evening that Hillary Clinton would have fired FBI Director James Comey if she was president.

"If Hillary Clinton had won, which thank God she didn't, but if she had, Director Comey would have been fired immediately and the same Democrats that are criticizing President Trump's decision today would be dancing in the streets," Sanders told Fox News host Tucker Carlson.

Trump made the decision to fire Comey "at some point" on Tuesday, according to Sanders. The decision was the result of Comey's losing "the confidence of the rank and file within the FBI" and lawmakers on both sides of the aisle.

Trump's pick for Comey's successor may be someone with no prior political experience, she added.