aotds-docks/src/lib/components/ShipEdit/index.svelte

31 lines
729 B
Svelte
Raw Normal View History

2022-03-02 16:14:31 +00:00
<div class="identification-row">
<Identification {...$shipState.identification} {...$shipState.reqs} />
<ShipCost {...$shipState.reqs} />
</div>
2022-03-02 00:14:01 +00:00
2022-03-02 18:42:42 +00:00
<Propulsion propulsion={$shipState.propulsion}/>
2022-03-04 00:45:47 +00:00
<Structure {...$shipState.structure} />
2022-03-02 00:14:01 +00:00
<script>
2022-03-02 16:14:31 +00:00
import { getContext } from "svelte";
2022-03-02 00:14:01 +00:00
2022-03-02 16:14:31 +00:00
import Identification from "./Identification/index.svelte";
import ShipCost from "./ShipCost.svelte";
2022-03-02 18:42:42 +00:00
import Propulsion from "./Propulsion/index.svelte";
2022-03-04 00:45:47 +00:00
import Structure from "./Structure/index.svelte";
2022-03-02 00:14:01 +00:00
2022-03-02 16:14:31 +00:00
const { state: shipState } = getContext("ship");
2022-03-02 00:14:01 +00:00
</script>
<style>
2022-03-02 16:14:31 +00:00
.identification-row {
display: flex;
}
.identification-row :global(> *:first-child) {
flex: 1;
}
2022-03-02 00:14:01 +00:00
</style>