import { useSelector } from "react-redux"; import { RootState } from "#/store"; import { BrowserSnapshot } from "./browser-snapshot"; import { EmptyBrowserMessage } from "./empty-browser-message"; export function BrowserPanel() { const { url, screenshotSrc } = useSelector( (state: RootState) => state.browser, ); const imgSrc = screenshotSrc && screenshotSrc.startsWith("data:image/png;base64,") ? screenshotSrc : `data:image/png;base64,${screenshotSrc || ""}`; return (