mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-03 11:07:00 -04:00
9 lines
260 B
TypeScript
9 lines
260 B
TypeScript
import type { Toggable } from '~/locale/config.ts';
|
|
|
|
export default (configModule: Toggable<{ route: string }> | undefined): string[] => {
|
|
if (!configModule?.enabled) {
|
|
return [];
|
|
}
|
|
return [`/${encodeURIComponent(configModule.route)}`];
|
|
};
|