π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
import ErrorOutlinedIcon from "@mui/icons-material/ErrorOutlined";
import { Stack, Typography } from "@mui/material";
import { t } from "i18next";
import type React from "react";
export const ActivityErrorIndicator: React.FC<React.PropsWithChildren> = ({
children,
}) => (
<Stack sx={{ gap: 2, alignItems: "center" }}>
<ErrorOutlinedIcon color="secondary" />
<Typography sx={{ color: "text.muted" }}>
{children ?? t("generic_error")}
</Typography>
</Stack>
);
export const InlineErrorIndicator: React.FC<React.PropsWithChildren> = ({
children,
}) => (
<Stack direction="row" sx={{ gap: "5px", alignItems: "center" }}>
<ErrorOutlinedIcon sx={{ fontSize: "16px", color: "critical.main" }} />
<Typography variant="small" sx={{ color: "critical.main" }}>
{children ?? t("generic_error")}
</Typography>
</Stack>
);