diff --git a/apps/desktop/src/lib/pr/PrDetailsModal.svelte b/apps/desktop/src/lib/pr/PrDetailsModal.svelte
index 9b4b6c2b6..91fd4b011 100644
--- a/apps/desktop/src/lib/pr/PrDetailsModal.svelte
+++ b/apps/desktop/src/lib/pr/PrDetailsModal.svelte
@@ -346,11 +346,13 @@
import Toggle from '$lib/shared/Toggle.svelte';
+ import Icon from '@gitbutler/ui/Icon.svelte';
import Tooltip from '@gitbutler/ui/Tooltip.svelte';
+ import iconsJson from '@gitbutler/ui/data/icons.json';
interface Props {
id?: string;
label: string;
checked: boolean;
+ icon?: keyof typeof iconsJson;
tooltip?: string;
disabled?: boolean;
onclick?: (e: MouseEvent) => void;
}
- let { id, label, checked = $bindable(), tooltip, disabled, onclick }: Props = $props();
+ let { id, label, checked = $bindable(), icon, tooltip, disabled, onclick }: Props = $props();
const toggleId = id || label.toLowerCase().replace(/\s/g, '-');