{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The links of a top bar in a row; the current one carries aria-current. side: all, or the first or second half of the list.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * The links of a top bar in a row; the current one carries aria-current. side: all, or the first or second half\n * of the list.\n */\nimport { For, type JSX } from \"solid-js\";\nimport { Group } from \"../compose\";\nimport { MenuEntry } from \"../components/menu-entry\";\nimport type { NavLink } from \"../blocks/nav-bar.types\";\n\nexport type NavLinksProps = {\n  links: NavLink[];\n  current?: string;\n  side?: \"all\" | \"left\" | \"right\";\n};\n\nexport function NavLinks({ links, current = \"\", side = \"all\" }: NavLinksProps) {\n  const count = links?.length ?? 0;\n  return (\n    <>\n      {((links?.length ?? 0) > 0) ? (\n        <Group gap=\"4\" align=\"center\" class=\"flex-wrap\" data-slot=\"nav-links\">\n          <For each={links ?? []}>{(l, iOf) => { const i = iOf(); return (\n            <>\n              {(((side as string) === \"all\") || (((i * 2) < count) === ((side as string) === \"left\"))) ? (\n                <MenuEntry href={l.href} class=\"text-sm\" current={(l.id === current)} testid=\"nav-link\">\n                  {l.name}\n                </MenuEntry>\n              ) : null}\n            </>\n          ); }}</For>\n        </Group>\n      ) : null}\n    </>\n  );\n}\n",
      "path": "components/nav-links.tsx",
      "target": "components/nav-links.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "nav-links",
  "registryDependencies": [
    "compose",
    "menu-entry",
    "nav-bar",
    "utils"
  ],
  "runtime": "solid",
  "title": "Nav Links",
  "type": "registry:component"
}
