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

import com.atlassian.soy.renderer.JsExpression;
import com.atlassian.bitbucket.nav.NavBuilder;

public class RepoCreateNavFunction extends BaseProjectNavFunction {

    public RepoCreateNavFunction(NavBuilder navBuilder) {
        super(navBuilder, "nav_repo_create");
    }

    @Override
    protected JsNavBuilder initJsBuilder(JsExpression... jsExpressions) {
        return new JsNavBuilder().project(jsExpressions[0]).createRepo();
    }

    @Override
    protected NavBuilder.Builder initBuilder(Object... args) {
        return project(args).createRepo();
    }
}
