mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Add patch metadata header
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<script lang="ts">
|
||||
import type { Patch } from "@bindings/cob/patch/Patch";
|
||||
|
||||
import capitalize from "lodash/capitalize";
|
||||
import { patchStatusColor } from "@app/lib/utils";
|
||||
|
||||
interface Props {
|
||||
state: Patch["state"];
|
||||
}
|
||||
|
||||
const { state }: Props = $props();
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="global-counter txt-small"
|
||||
style:width="fit-content"
|
||||
style:color="var(--color-foreground-match-background)"
|
||||
style:background-color={patchStatusColor[state.status]}>
|
||||
{capitalize(state.status)}
|
||||
</div>
|
||||
Reference in New Issue
Block a user