mirror of
https://github.com/goauthentik/authentik
synced 2026-04-27 18:07:15 +02:00
* website: Glossary fix minor issues wip Apply suggestion from @dominic-r Signed-off-by: Dominic R <dominic@sdko.org> anchor to param wip wip at least the lockfile changes now sure a-z first as tana asked idk why i switched in the first place wip wip lock lockfiles are hard wip please work no have? Revert "no have?" This reverts commit 743dbc1bc2900eedcc2c93af248e6afdec3688a3. * changed to sentence-case capitalization --------- Co-authored-by: Tana M Berry <tana@goauthentik.io>
24 lines
628 B
TypeScript
24 lines
628 B
TypeScript
import styles from "./styles.module.css";
|
||
|
||
import React from "react";
|
||
|
||
/** A–Z navigation anchors for simplified view. */
|
||
export interface AlphaNavProps {
|
||
letters: string[];
|
||
}
|
||
|
||
export const AlphaNav: React.FC<AlphaNavProps> = ({ letters }) => {
|
||
if (letters.length === 0) return null;
|
||
return (
|
||
<nav className={styles.alphaNav} aria-label="A to Z navigation">
|
||
{letters.map((letter) => (
|
||
<a key={letter} href={`#letter-${letter}`} className={styles.alphaNavLink}>
|
||
{letter}
|
||
</a>
|
||
))}
|
||
</nav>
|
||
);
|
||
};
|
||
|
||
export default AlphaNav;
|