-<script>
- export async function load(ctx) {
- let id = ctx.page.params.id
- return { props: { id }}
- }
+<script lang="ts" context="module">
+ export const load = ({
+ page: {
+ params: { id }
+ }
+ }) => ({ props: { id } });
+</script>
- import Author from '$components/author/author.svelte';
+<script lang="ts">
+ import Author from '$lib/components/author/author.svelte';
</script>
-<Author/>
+<Author />