import type { ConnectionSafety } from "@domicile-desktop/manganese-address/connection-safety"; import { css } from "../../styled-system/css"; import { hstack } from "../../styled-system/patterns"; import { siteOf } from "./app-origin"; import { ConnectionIndicator } from "./ConnectionIndicator"; type Props = { /** * The page's address. Must come from the same report as `security` (see * `useShownPage`). */ address: string; /** The browser's security state for {@link Props.address}. */ security: ConnectionSafety; }; /** * An app window's read-only address, shown while its page is off the app's * origin, as Chrome does for an installed app. See * docs/architecture/WEB-APPS.md. */ export const AppAddress = ({ address, security }: Props) => (