{{page-title 'Key/Value'}} {{#let (or sortBy "isFolder:asc") as |sort|}}
    {{#if (not-eq parent.Key '/') }}
  1. Key / Values
  2. {{/if}} {{#each (slice 0 -2 (split parent.Key '/')) as |breadcrumb index|}}
  3. {{breadcrumb}}
  4. {{/each}}

{{#if (eq parent.Key '/')}} Key / Value {{else}} {{take 1 (drop 1 (reverse (split parent.Key '/')))}} {{/if}}

{{#if (gt items.length 0) }}
{{#let (from-entries (array (array "Key:asc" "A to Z") (array "Key:desc" "Z to A") (array "isFolder:desc" "Folders to Keys") (array "isFolder:asc" "Keys to Folders") )) as |selectable| }} {{get selectable sort}} {{/let}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{/let}}
{{/if}}
{{#if (not-eq parent.Key '/') }} Create {{else}} Create {{/if}} {{#let (sort-by (comparator 'kv' sort) items) as |sorted|}}

{{#if (gt items.length 0)}} No K/V pairs found {{else}} Welcome to Key/Value {{/if}}

{{#if (gt items.length 0)}} No K/V pairs where found matching that search, or you may not have access to view the K/V pairs you are searching for. {{else}} You don't have any K/V pairs, or you may not have access to view K/V pairs yet. {{/if}}

{{/let}}
{{/let}}