summaryrefslogtreecommitdiff
path: root/node_modules/@jet-app/app-store/tmp/src/api/intents/search-results-page-intent.js
blob: 94edcf701d7daf026f46cbc7afe9ea4c6a6a764f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { normalizePreviewPlaform } from "../models/preview-platform";
export function makeSearchResultsPageIntent(opts) {
    const { platform, ...rest } = opts;
    return {
        ...rest,
        platform: normalizePreviewPlaform(platform),
        $kind: "SearchResultsPageIntent",
    };
}
export function makeSearchResultsPageIntentFromURLParams(opts) {
    return makeSearchResultsPageIntent({
        ...opts,
        origin: "userText",
    });
}
export function isSearchResultsPageIntent(intent) {
    return intent.$kind === "SearchResultsPageIntent";
}
//# sourceMappingURL=search-results-page-intent.js.map