summaryrefslogtreecommitdiff
path: root/src/utils/seo/search-landing-page.ts
blob: 70a8bd47ac9342a223c84645542cdb60f32b58de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import type { SearchResultsPage } from '@jet-app/app-store/api/models';
import type { SeoData } from '@amp/web-app-components/src/components/MetaTags/types';
import type I18N from '@amp/web-apps-localization';

export function seoDataForSearchLandingPage(
    page: SearchResultsPage,
    i18n: I18N,
): SeoData {
    const title = i18n.t('ASE.Web.AppStore.Meta.TitleWithSiteName', {
        title: i18n.t('ASE.Web.AppStore.Meta.SearchLanding.Title'),
    });

    return {
        pageTitle: title,
        socialTitle: title,
        appleTitle: title,
    };
}