v3: added localization, use global player for uploaded audio/video files
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user