Files
Investidor-V2/resources/js/layouts/auth-layout.tsx
T
paulomassigue 2209b83820
tests / ci (push) Canceled after 0s
login de cadastro padronizado
2026-11-09 15:05:20 +02:00

28 lines
715 B
TypeScript

import AuthLayoutTemplate from '@/layouts/auth/auth-simple-layout';
import AuthTempoLayout from '@/layouts/auth/auth-tempo-layout';
import { useTempoUi } from '@/components/tempo-brand';
export default function AuthLayout({
title = '',
description = '',
variant = 'simple',
children,
}: {
title?: string;
description?: string;
variant?: 'simple' | 'tempo-card';
children: React.ReactNode;
}) {
const { t } = useTempoUi();
if (variant === 'tempo-card') {
return <AuthTempoLayout>{children}</AuthTempoLayout>;
}
return (
<AuthLayoutTemplate title={t(title)} description={t(description)}>
{children}
</AuthLayoutTemplate>
);
}