package sresponse

import (
	"net/http"

	"github.com/tech/sendico/pkg/api/http/response"
	"github.com/tech/sendico/pkg/mlogger"
)

type SignupAvailability struct {
	Login     string `json:"login"`
	Available bool   `json:"available"`
}

func SignUpAvailability(logger mlogger.Logger, login string, available bool) http.HandlerFunc {
	return response.Ok(
		logger,
		SignupAvailability{
			Login:     login,
			Available: available,
		},
	)
}
