@@ -8,7 +8,7 @@ import { LinkIcon } from "@heroicons/react/20/solid";
88import  {  api  }  from  "@/server/trpc/react" ; 
99import  {  useRouter ,  useSearchParams  }  from  "next/navigation" ; 
1010import  type  {  Session  }  from  "next-auth" ; 
11- import  {  Tabs  }  from  "@/components/Tabs " ; 
11+ import  {  Heading  }  from  "@/components/ui-components/heading " ; 
1212import  {  toast  }  from  "sonner" ; 
1313
1414type  Props  =  { 
@@ -71,20 +71,8 @@ const Profile = ({ profile, isOwner, session }: Props) => {
7171    } 
7272  } ; 
7373
74-   const  selectedTab  = 
75-     tabFromParams  &&  [ "groups" ,  "articles" ] . includes ( tabFromParams ) 
76-       ? tabFromParams 
77-       : "articles" ; 
78- 
79-   const  [ ARTICLES ]  =  [ "articles" ] ; 
80-   const  tabs  =  [ 
81-     { 
82-       name : `Articles (${ posts . length }  , 
83-       value : ARTICLES , 
84-       href : `?tab=${ ARTICLES }  , 
85-       current : selectedTab  ===  ARTICLES , 
86-     } , 
87-   ] ; 
74+   const  ARTICLES  =  "articles" ; 
75+   const  selectedTab  =  tabFromParams  ===  ARTICLES  ? ARTICLES  : ARTICLES ; 
8876
8977  return  ( 
9078    < > 
@@ -121,11 +109,11 @@ const Profile = ({ profile, isOwner, session }: Props) => {
121109        </ main > 
122110        { accountLocked  ? ( 
123111          < div  className = "mt-8 flex items-center justify-between border-b pb-4 text-3xl font-extrabold tracking-tight text-neutral-900 dark:text-neutral-50 sm:text-4xl" > 
124-             < h1 > Account locked 🔒</ h1 > 
112+             < Heading   level = { 1 } > Account locked 🔒</ Heading > 
125113          </ div > 
126114        )  : ( 
127-           < div  className = "mx-auto mt-4 dark:bg-neutral-900  sm:max-w-2xl lg:max-w-5xl" > 
128-             < Tabs   tabs = { tabs }   / >
115+           < div  className = "mx-auto mt-4 sm:max-w-2xl lg:max-w-5xl" > 
116+             < Heading   level = { 1 } > { `Articles ( ${ posts . length } )` } </ Heading > 
129117          </ div > 
130118        ) } 
131119        { ( ( )  =>  { 
@@ -179,10 +167,6 @@ const Profile = ({ profile, isOwner, session }: Props) => {
179167                  ) } 
180168                </ div > 
181169              ) ; 
182-             case  GROUPS :
183-               return  ( 
184-                 < p  className = "py-4 font-medium" > Groups are coming soon!</ p > 
185-               ) ; 
186170            default :
187171              return  null ; 
188172          } 
0 commit comments