import React from 'react'; import { Outlet } from 'react-router-dom'; import { Box, Container, Paper, Typography, Button } from '@mui/material'; import { Link as RouterLink } from 'react-router-dom'; import ArrowBackIcon from '@mui/icons-material/ArrowBack'; import useBrandingSettings from '@hooks/brandingHooks'; import imageUtils from '@utils/imageUtils'; const AuthLayout = () => { // Use the centralized hook to fetch branding settings const { data: brandingSettings } = useBrandingSettings(); // Get site name and logo from branding settings const siteName = brandingSettings?.site_name || 'Rocks, Bones & Sticks'; const logoUrl = imageUtils.getImageUrl(brandingSettings?.logo_url) const copyrightText = brandingSettings?.copyright_text || `© ${new Date().getFullYear()} ${siteName}. All rights reserved.`; return ( theme.palette.mode === 'dark' ? 'background.default' : 'grey.100', }} > {logoUrl ? ( ) : ( {siteName} )} theme.palette.mode === 'light' ? theme.palette.grey[200] : theme.palette.grey[800], }} > {copyrightText} ); }; export default AuthLayout;