Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 27 lines 802 B view raw
1import { ArrowsRightLeftIcon } from "@heroicons/react/24/outline"; 2import cn from "@/helpers/cn"; 3import { useSwitchAccountModalStore } from "@/store/non-persisted/modal/useSwitchAccountModalStore"; 4 5interface SwitchAccountProps { 6 className?: string; 7} 8 9const SwitchAccount = ({ className = "" }: SwitchAccountProps) => { 10 const { setShow: setShowSwitchAccountModal } = useSwitchAccountModalStore(); 11 12 return ( 13 <button 14 className={cn( 15 "flex w-full items-center space-x-1.5 px-2 py-1.5 text-left text-gray-700 text-sm dark:text-gray-200", 16 className 17 )} 18 onClick={() => setShowSwitchAccountModal(true)} 19 type="button" 20 > 21 <ArrowsRightLeftIcon className="size-4" /> 22 <span>Switch account</span> 23 </button> 24 ); 25}; 26 27export default SwitchAccount;