refactor: use Astro.props directly for @ayco/astro-resume

This commit is contained in:
Ayo 2023-07-16 22:05:34 +02:00
parent 2e574e289f
commit 470152ea32

View file

@ -4,15 +4,13 @@ export interface Props {
routerOutlet: string,
skipSave?: boolean
}
const {routerOutlet, skipSave = false} = Astro.props;
---
<div id="library">
<span id="heading"></span>
<ul id="post-list"></ul>
</div>
<Serialize id="preferences" data={{routerOutlet, skipSave}} />
<Serialize id="preferences" data={{...Astro.props}} />
<script>
import {deserialize} from '@ayco/astro-resume';