Court cases and release dates service header

This component allows the user to know they are within the court cases and release dates service.

Contents

<div class="service-header" role="region" aria-labelledby="service-header-heading">
        <div class="service-header__container">
            <a id="service-header-heading-link" href="https://court-cases-release-dates-dev.hmpps.service.justice.gov.uk/prisoner/A1234BC/overview"><span class="service-header__service-name" id="service-header-heading">Court cases and release dates</span></a>
        </div>
    </div>
    
            
     
    
    
    
    <div class="service-header" role="region" aria-labelledby="service-header-heading">
        <div class="service-header__container">
            <a id="service-header-heading-link" href="/some-path"><span class="service-header__service-name" id="service-header-heading">Some custom text</span></a>
        </div>
    </div>
{% from "hmpps/components/court-cases-release-dates/service-header/macro.njk" import serviceHeader %}
                
                {# selects which set of environment specific service urls to use by default #}
                {# one of; 'local', 'dev', 'pre' or 'prod' #}
                {% set environment = 'dev' %}
                {% set prisonNumber = 'A1234BC' %}
                {{ serviceHeader({ 
                   environment: environment,
                   prisonNumber: prisonNumber
                }) }}
    
                {# the text and href can also be overriden by passing them in as parameters.#}
                {# if none are supplied like above the text defaults to 'Court cases and release dates'.#}
                {# the href defaults to the overview page of the hub #}
                {{ serviceHeader({ 
                   text: 'Some custom text',
                   href: '/some-path'
                }) }}