src/App/AppTemplate/NavLinks.tsx
import menuConfig from './menuConfig';
import { MakeLink, SideMenuItem } from './SideMenuItem';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function ActiveUsers({ heartBeat, userCount }: { heartBeat?: string, userCount?: number }) {
return (
<div className="active-users">
<div>
{/* <button
type="button"
style={{
cursor: 'none', marginLeft: '10px', height: '20px', width: '20px', marginTop: '10px', backgroundColor: heartBeat,
}}
>
{' '}
</button> */}
</div>
{/* <div className="active-users-text" style={{ paddingLeft: '10px', marginTop: '8px' }}>
<i>Active Users</i>
:
{' '}
{userCount}
</div> */}
</div>
);
}
const MusTT = () => (
<div
id="musTT"
style={{
display: 'none',
position: 'absolute',
top: '305px',
right: '68px',
backgroundColor: 'white',
padding: '3px',
}}
>
Music
</div>
);
interface InavLinksProps {
handleClose: () => void, userCount?: number, heartBeat?: string,
}
export function NavLinks(props: InavLinksProps) {
const {
userCount, heartBeat, handleClose,
} = props;
return (
<div className="nav-list" style={{ width: '180px' }}>
{process.env.APP_NAME !== 'joshandmariamusic.com'
? <MusTT />
: null}
{process.env.APP_NAME !== 'joshandmariamusic.com' ? menuConfig.wjNav.map(
(menu, index) => (
<SideMenuItem
key={index}
menu={menu}
index={index}
handleClose={handleClose}
/>
),
)
: menuConfig.jamNav.map((menu, index) => <MakeLink menu={menu} key={index} index={index} type="a" handleClose={handleClose} />)}
<p style={{ margin: 0, padding: 0, fontSize: '6pt' }}> </p>
{process.env.APP_NAME !== 'joshandmariamusic.com' ? <ActiveUsers heartBeat={heartBeat} userCount={userCount} /> : null}
</div>
);
}