import React from 'react'; import { useSelector } from 'react-redux'; import type { RootState } from '../../redux/store'; import type { LayoutProps } from '../../types'; const Layout: React.FC = ({ children }) => { // TODO: Replace with actual Redux selectors const currentSinger = useSelector((state: RootState) => state.auth?.singer || ''); const isAdmin = useSelector((state: RootState) => state.auth?.isAdmin || false); const controllerName = useSelector((state: RootState) => state.auth?.controller || ''); return (
{/* Header */}
{/* Logo/Title */}

🎤 Karaoke App

{controllerName && ( Controller: {controllerName} )}
{/* User Info */}
{currentSinger && (
{currentSinger} {isAdmin && ( Admin )}
)}
{/* Main Content */}
{children}
{/* Footer */}
); }; export default Layout;