/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';

/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */

/** @typedef {{ username: NonNullable<unknown> }} User_Page_TitleInputs */

const en_user_page_title = /** @type {(inputs: User_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.username} — libnovel`)
};

const ru_user_page_title = /** @type {(inputs: User_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.username} — libnovel`)
};

const id_user_page_title = /** @type {(inputs: User_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.username} — libnovel`)
};

const pt_user_page_title = /** @type {(inputs: User_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.username} — libnovel`)
};

const fr_user_page_title = /** @type {(inputs: User_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.username} — libnovel`)
};

/**
* | output |
* | --- |
* | "{username} — libnovel" |
*
* @param {User_Page_TitleInputs} inputs
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
* @returns {LocalizedString}
*/
export const user_page_title = /** @type {((inputs: User_Page_TitleInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<User_Page_TitleInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs, options = {}) => {
	const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
	if (locale === "en") return en_user_page_title(inputs)
	if (locale === "ru") return ru_user_page_title(inputs)
	if (locale === "id") return id_user_page_title(inputs)
	if (locale === "pt") return pt_user_page_title(inputs)
	return fr_user_page_title(inputs)
});