@@ -8,7 +8,13 @@ declare namespace App {
api: import('@api').ImmichApi;
}
- // interface Platform {}
+ interface PageData {
+ meta: {
+ title: string;
+ description?: string;
+ imageUrl?: string;
+ };
+ }
interface Error {
message: string;
@@ -9,5 +9,11 @@ export const load = (async ({ locals, parent }) => {
const { data: items } = await locals.api.searchApi.getExploreData();
- return { user, items };
+ return {
+ user,
+ items,
+ title: 'Explore'
}) satisfies PageServerLoad;
@@ -23,5 +23,13 @@ export const load = (async ({ locals, parent, url }) => {
undefined,
{ params: url.searchParams }
);
- return { user, term, results };
+
+ term,
+ results,
+ title: 'Search'