// The "Open" button for a finding, notice or ask that carries an absolute console deep link (`url` from the CLI's // console-links module, pitfall 71): opens it in the browser through the open-external command. import { api, errorText } from '../api'; import { t } from '../i18n'; import { useData } from '../store'; import { Icon } from './icons'; export function OpenLink({ url }: { url?: string | null }) { const d = useData(); if (!url || !/^https:\/\//.test(url)) return null; return ( ); }