Files
authentik/website/docusaurus-theme/components/VersionPicker/index.tsx
Teffen Ellis 536688f23b website: Fix version origin detection, build-time URLs (#15774)
* website: Update route base path.

* website: Add copy step for migration.

* website: Use build redirects.

* website: Ensure that netlify config is picked up.

* website: Add shared Netlify plugin cache.

* website: Use relative path.

* website: Fix routing when moving across versioned URLs.

* website: Fix issues surrounding origin detection.

* website: Allow integrations to omit plugin data, fix types.
2025-08-21 18:31:54 +00:00

16 lines
513 B
TypeScript

import { useVersionPluginData } from "#components/VersionPicker/utils.ts";
import { VersionPickerLoader } from "#components/VersionPicker/VersionPickerLoader.tsx";
/**
* A component that shows the available versions of the documentation.
*
* @see {@linkcode VersionPickerLoader} for the data-fetching component.
*/
export const VersionPicker: React.FC = () => {
const pluginData = useVersionPluginData();
if (!pluginData) return null;
return <VersionPickerLoader pluginData={pluginData} />;
};