2026-03-11 22:48:36 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import Stars from "@assets/icons/stars.svg?dataurl"
|
|
|
|
|
import Icon from "@lib/components/Icon.svelte"
|
|
|
|
|
import Button from "@lib/components/Button.svelte"
|
2026-06-08 21:14:40 +00:00
|
|
|
import type {HealthCheck} from "@app/healthChecks"
|
2026-07-28 16:16:26 +00:00
|
|
|
import {healthChecks} from "@app/healthChecks"
|
2026-03-19 20:26:52 +00:00
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
healthCheck: HealthCheck
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const {healthCheck}: Props = $props()
|
2026-03-11 22:48:36 +00:00
|
|
|
|
2026-07-28 16:16:26 +00:00
|
|
|
const apply = () => $healthChecks.apply(healthCheck)
|
2026-03-11 22:48:36 +00:00
|
|
|
</script>
|
|
|
|
|
|
2026-09-08 23:30:23 +00:00
|
|
|
<div class="flex items-start justify-between gap-3 px-4 py-3">
|
|
|
|
|
<div class="flex min-w-0 flex-col gap-1">
|
|
|
|
|
<strong class="text-sm">{healthCheck.title}</strong>
|
|
|
|
|
<p class="text-sm opacity-75">{healthCheck.description}</p>
|
2026-03-11 22:48:36 +00:00
|
|
|
</div>
|
2026-09-08 23:30:23 +00:00
|
|
|
<Button class="button button-neutral button-sm shrink-0" onclick={apply}>
|
|
|
|
|
<Icon icon={Stars} size={4} />
|
2026-03-19 20:26:52 +00:00
|
|
|
{healthCheck.action}
|
2026-03-11 22:48:36 +00:00
|
|
|
</Button>
|
2026-09-08 23:30:23 +00:00
|
|
|
</div>
|