import type { Metadata } from 'next';

import { AuthBrandingProvider } from '@/components/shared/auth-branding-provider';
import { resolveAuthShellBranding } from '@/lib/email/auth-shell-branding';

export const metadata: Metadata = {
  title: {
    default: 'Sign In',
    template: '%s',
  },
};

export default async function AuthLayout({ children }: { children: React.ReactNode }) {
  const branding = await resolveAuthShellBranding();
  return <AuthBrandingProvider branding={branding}>{children}</AuthBrandingProvider>;
}
