<button onClick={()=>props.changeOn()} "> </button>
const CenterSide = (props) =>
{
const [IsOn,SetTop]=useState(false)
const reverse= function (){
if(IsOn==false){
SetTop(true)
}
else {
SetTop(false)
};
};
return <div ">
<Nav changeOn={reverse}/>
</div>
}