package com.atlassian.stash.internal.web.soy.functions.nav;

import com.atlassian.bitbucket.nav.NavBuilder;

/**
 * A Soy nav function for generating the email link for unwatching a pull request.
 * Note: this should never be needed client-side and it will throw an UnsupportedOperationException
 * if an attempt is made to use it in this context.
 */
public class PullRequestUnwatchNavFunction extends BasePullRequestNavFunction {

    public PullRequestUnwatchNavFunction(NavBuilder navBuilder) {
        super(navBuilder, "nav_pull_unwatch", 3);
    }

    @Override
    protected NavBuilder.Builder initBuilder(Object... args) {
        return pullRequest(args).unwatch();
    }
}
