Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

804 B
Raw Blame
import { Download04Icon } from "@hugeicons/core-free-icons";
import { Icon } from "@/components/ui/icon";

import { Button } from "@/components/ui/button";
import { useT } from "@/i18n/use-translation";
import { filePreviewMessages as m } from "./file-preview.messages";

export function PreviewAdapterError({
  message,
  onDownload,
}: {
  message: string;
  onDownload: () => void;
}) {
  const t = useT();
  return (
    <div
      className="flex h-full min-h-[420px] flex-col items-center justify-center gap-3 bg-app-surface-soft p-8 text-center"
      role="alert"
    >
      <p className="max-w-lg text-sm text-app-danger">{message}</p>
      <Button onClick={onDownload} tone="secondary">
        <Icon icon={Download04Icon} />
        {t(m.downloadOriginal)}
      </Button>
    </div>
  );
}