import React, { ReactNode } from "react"; import { Footer } from "components"; import { useAuthState, useUserState } from "context"; import styled from "styled-components"; import { Book, DeviceDesktop, Home, Lock, Settings, Shield, Users, } from "tabler-icons-react"; import { Avatar, Dropdown, Navigation } from "tabler-react-typescript"; const StyledContainer = styled.div` padding-bottom: 30px; `; interface Props { children?: ReactNode; } function SiteWrapper({ children }: Props) { const user = useUserState(); const { logout } = useAuthState(); return (
Nginx Proxy Manager } avatar={} profileName={user.nickname} profileSubName={ user.roles.includes("admin") ? "Administrator" : "Standard User" } profileItems={[ Set status, Profile & account, Feedback, , Settings, Logout , ]} /> , active: true, }, { title: "Hosts", icon: , }, { title: "Access Lists", icon: , }, { title: "Certificates", icon: , }, { title: "Users", icon: , }, { title: "Audit Log", icon: , }, { title: "Settings", icon: , }, ]} />
{children}
); } export { SiteWrapper };