v3: added localization, use global player for uploaded audio/video files

This commit is contained in:
khannurien
2026-04-03 15:29:33 +00:00
parent 378b3ffa46
commit 0ce80398a4
64 changed files with 4248 additions and 941 deletions

View File

@@ -1,18 +1,20 @@
import type { ReactNode } from "react";
import { t } from "@lingui/core/macro";
import { PageShell } from "./PageShell.tsx";
import { ErrorCard } from "./ErrorCard.tsx";
export function PageError(
{ title = "Something went wrong", message, actions }: {
{ title, message, actions }: {
title?: string;
message: string;
actions?: ReactNode;
},
) {
const resolvedTitle = title ?? t`Something went wrong`;
return (
<PageShell>
<div className="page-error-wrap">
<ErrorCard title={title} message={message} actions={actions} />
<ErrorCard title={resolvedTitle} message={message} actions={actions} />
</div>
</PageShell>
);