aotds-docks/src/lib/components/ShipEdit/Identification.story.svelte

26 lines
497 B
Svelte
Raw Normal View History

2023-03-21 18:29:44 +00:00
<Hst.Story title="ShipEdit/Identification">
<Identification
shipClass="Demeter"
shipType="Destroyer"
isCarrier={false}
reqs={{
cost: 12,
mass: 13,
usedMass: 9,
}}
2023-04-21 17:12:37 +00:00
{api}
2023-03-21 18:29:44 +00:00
/>
</Hst.Story>
<script lang="ts">
export let Hst;
2023-04-21 17:12:37 +00:00
import { logEvent } from "histoire/client";
2023-03-21 18:29:44 +00:00
import Identification from "./Identification.svelte";
2023-04-21 17:12:37 +00:00
const api = {
dispatch: {
setCarrier: (isCarrier) => logEvent("isCarrier", { isCarrier }),
},
};
2023-03-21 18:29:44 +00:00
</script>