Skip to content

Commit

Permalink
refactor: Modularize InternalTools with Tools rendering helper
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Mar 6, 2025
1 parent a1f12cd commit 20fa163
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/web/src/components/Account/InternalTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@ const InternalTools: FC<InternalToolsProps> = ({ account }) => {
return null;
}

const Tools = () => (
<>
{hasCreatorToolAccess && <CreatorTool account={account} />}
{isStaff && <StaffTool account={account} />}
</>
);

return (
<Card
as="aside"
className="!bg-yellow-300/20 mb-4 space-y-5 border-yellow-400 p-5 text-yellow-600"
forceRounded
>
{hasCreatorToolAccess && <CreatorTool account={account} />}
{isStaff && <StaffTool account={account} />}
<Tools />
</Card>
);
};
Expand Down

0 comments on commit 20fa163

Please sign in to comment.