15 lines
298 B
TypeScript
15 lines
298 B
TypeScript
import { get } from 'svelte/store';
|
|
|
|
import { storedLocation } from '$lib/stores/settings';
|
|
|
|
import type { LayoutLoad } from './$types';
|
|
|
|
const location = get(storedLocation);
|
|
|
|
export const load: LayoutLoad = async () => {
|
|
return {
|
|
title: `Weather ${location.name}`,
|
|
location: location
|
|
};
|
|
};
|