direction' conflicts with a declaration in a child block

I have a code like that,

using UnityEngine;


public class atess : MonoBehaviour
{
  
  public Vector2 speed = new Vector2(10, 10);

 
  public Vector2 direction = new Vector2(-1, 0);

  private Vector2 movement;

  void Update()  
  {
	PlayerControl pctrl = GetComponent<PlayerControl>();
	if(pctrl.facingRight){
		Vector2 direction =  new Vector2(1,0);
	}
	else{
		Vector2 direction =  new Vector2(-1,0);
	}	
   
    movement = new Vector2(speed.x * direction.x);      
      
  }

  void FixedUpdate()
  {
    
    rigidbody2D.velocity = movement;
  }
}

When I start the game,I get “Assets/atess.cs(24,38): error CS0135: `direction’ conflicts with a declaration in a child block” error.How I fix it?

Check for each use of variable “direction”, you are declaring 3 variables of type Vector2 with name direction. The use of variabel in line 24 is causing confusion for the compiler, wich variable he should use? From line 10, line 18 or line 21?