diff --git a/src/renderer/src/components/NativeChatResumeAutoNote.tsx b/src/renderer/src/components/NativeChatResumeAutoNote.tsx new file mode 100644 index 00000000000..d8e325994fc --- /dev/null +++ b/src/renderer/src/components/NativeChatResumeAutoNote.tsx @@ -0,0 +1,53 @@ +import { translate } from '@/i18n/i18n' +import { useAppStore } from '../store' +import { Button } from './ui/button' +import { NATIVE_CHAT_RESUME_SETTING_SECTION_ID } from './settings/native-chat-resume-setting-target' + +/** + * Says a run started on its own, in the place the "Don't ask again" box takes in the picker, and + * where to change that. Only a run this launch's preference started gets it. + */ +export function NativeChatResumeAutoNote({ + inFlight, + onOpenSettings +}: { + inFlight: boolean + /** Closes the dialog so the settings page is not left under it. */ + onOpenSettings: () => void +}): React.JSX.Element { + const openSettingsPage = useAppStore((state) => state.openSettingsPage) + const openSettingsTarget = useAppStore((state) => state.openSettingsTarget) + return ( +