---Display enter or flip prompt---

function module.ShowPrompt(seat, parent)
	if not AdornedSeat then
		ContextActionService:BindAction(
			SEATING_ACTION_NAME,
			seatingAction,
			false,
			Keymap.EnterVehicleGamepad,
			Keymap.EnterVehicleKeyboard
		)
		if isFlipped(seat) then
			FlipImageButton.Visible = true
			EnterImageButton.Visible = false
		else
			FlipImageButton.Visible = false
			EnterImageButton.Visible = true
		end
		AdornedSeat = seat
		ButtonGui.Adornee = seat
		ButtonGui.Enabled = true
		ButtonGui.Parent = parent
		if seat.Name == "VehicleSeat" then
			EnterImageButton.Image = DriverButtonId
			EnterImageButton.Pressed.Image = DriverButtonPressedId
		else
			EnterImageButton.Image = PassengerButtonId
			EnterImageButton.Pressed.Image = PassengerButtonPressedId
		end
	end
end

function module.HidePrompt()
	ContextActionService:UnbindAction(SEATING_ACTION_NAME)
	AdornedSeat = nil
	ButtonGui.Adornee = nil
	ButtonGui.Enabled = false
	ButtonGui.Parent = script
end

return module
