Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 32 lines 994 B view raw
1import { useAccount } from "wagmi"; 2import BackButton from "@/components/Shared/BackButton"; 3import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 4import PageLayout from "@/components/Shared/PageLayout"; 5import WrongWallet from "@/components/Shared/Settings/WrongWallet"; 6import { Card, CardHeader } from "@/components/Shared/UI"; 7import { useAccountStore } from "@/store/persisted/useAccountStore"; 8import AccountManager from "./AccountManager"; 9 10const ManagerSettings = () => { 11 const { currentAccount } = useAccountStore(); 12 const { address } = useAccount(); 13 const disabled = currentAccount?.owner !== address; 14 15 if (!currentAccount) { 16 return <NotLoggedIn />; 17 } 18 19 return ( 20 <PageLayout title="Manager settings"> 21 <Card> 22 <CardHeader 23 icon={<BackButton path="/settings" />} 24 title="Manager settings" 25 /> 26 {disabled ? <WrongWallet /> : <AccountManager />} 27 </Card> 28 </PageLayout> 29 ); 30}; 31 32export default ManagerSettings;