From 20fa163e15689b0a724409ca632a30d9180c042f Mon Sep 17 00:00:00 2001 From: Bigint <69431456+bigint@users.noreply.github.com> Date: Thu, 6 Mar 2025 16:07:27 +0530 Subject: [PATCH] refactor: Modularize InternalTools with Tools rendering helper --- apps/web/src/components/Account/InternalTools.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/Account/InternalTools.tsx b/apps/web/src/components/Account/InternalTools.tsx index d650faf775c2..0a2dfd2349a3 100644 --- a/apps/web/src/components/Account/InternalTools.tsx +++ b/apps/web/src/components/Account/InternalTools.tsx @@ -18,14 +18,20 @@ const InternalTools: FC = ({ account }) => { return null; } + const Tools = () => ( + <> + {hasCreatorToolAccess && } + {isStaff && } + + ); + return ( - {hasCreatorToolAccess && } - {isStaff && } + ); };