import { Text } from "preact-i18n";
import { Modal } from "@revoltchat/ui";
import { noop, noopTrue } from "../../../lib/js";
import { APP_VERSION } from "../../../version";
import { ModalProps } from "../types";
/**
* Out-of-date indicator which instructs users
* that their client needs to be updated
*/
export default function OutOfDate({
onClose,
version,
}: ModalProps<"out_of_date">) {
return (
}
description={
<>
>
}
actions={[
{
palette: "plain",
onClick: noop,
children: (
),
},
{
palette: "plain-secondary",
onClick: noopTrue,
children: (
),
},
]}
onClose={onClose}
nonDismissable
/>
);
}