diff --git a/packages/app/src/desktop/components/desktop-permission-row.tsx b/packages/app/src/desktop/components/desktop-permission-row.tsx index 628dcaa25..e176fad98 100644 --- a/packages/app/src/desktop/components/desktop-permission-row.tsx +++ b/packages/app/src/desktop/components/desktop-permission-row.tsx @@ -10,6 +10,10 @@ export interface DesktopPermissionRowProps { isRequesting: boolean; showBorder?: boolean; onRequest: () => void; + extraActionLabel?: string; + isExtraActionBusy?: boolean; + isExtraActionDisabled?: boolean; + onExtraAction?: () => void; } export function DesktopPermissionRow({ @@ -18,6 +22,10 @@ export function DesktopPermissionRow({ isRequesting, showBorder, onRequest, + extraActionLabel, + isExtraActionBusy = false, + isExtraActionDisabled = false, + onExtraAction, }: DesktopPermissionRowProps) { const { theme } = useUnistyles(); const state = status?.state ?? "unknown"; @@ -36,9 +44,21 @@ export function DesktopPermissionRow({ {isGranted ? ( - - - Granted + + + + Granted + + {extraActionLabel && onExtraAction ? ( + + ) : null} ) : (