mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 11:29:26 +03:00
c5f5714e02
Co-authored-by: Dominic R <dominic@sdko.org> Fix version origin detection, build-time URLs (#15774)
16 lines
513 B
TypeScript
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} />;
|
|
};
|