import useLocalSettingsStore from "@/store/localSettings"; import Image from "next/image"; import Link from "next/link"; import React, { ReactNode } from "react"; import { Trans } from "next-i18next"; interface Props { text?: string; children: ReactNode; "data-testid"?: string; } export default function CenteredForm({ text, children, "data-testid": dataTestId, }: Props) { const { settings } = useLocalSettingsStore(); return (
{text}
) : undefined} {children}