feat: e2e encrypted sync

This commit is contained in:
zhom
2026-02-24 05:51:48 +04:00
parent 21d80fde56
commit e6cb4e6082
56 changed files with 5831 additions and 2549 deletions
+14 -1
View File
@@ -3,7 +3,12 @@
* Centralized helpers for browser name mapping, icons, etc.
*/
import { FaChrome, FaExclamationTriangle, FaFirefox } from "react-icons/fa";
import {
FaChrome,
FaExclamationTriangle,
FaFire,
FaFirefox,
} from "react-icons/fa";
/**
* Map internal browser names to display names
@@ -39,6 +44,14 @@ export function getBrowserIcon(browserType: string) {
}
}
export function getProfileIcon(profile: {
browser: string;
ephemeral?: boolean;
}) {
if (profile.ephemeral) return FaFire;
return getBrowserIcon(profile.browser);
}
export const getCurrentOS = () => {
if (typeof window !== "undefined") {
const userAgent = window.navigator.userAgent;