1
0
Fork 0
fahrPool/web/components/pwa/PwaHead.tsx

16 lines
680 B
TypeScript

import { iconUrl, type IconBranding } from "@/lib/pwa/icon-url";
import { kurzname } from "@/lib/pwa/manifest";
export function PwaHead({ firma }: { firma: IconBranding | null }) {
return (
<>
<link rel="manifest" href="/manifest.webmanifest" crossOrigin="use-credentials" />
<link rel="apple-touch-icon" href={iconUrl(firma, "180")} />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content={firma ? kurzname(firma.name) : "Aushilfsfahrer"} />
</>
);
}