const ProfilePage = () => { const accountId = props.accountId ?? context.accountId; if (!accountId) { return "No account ID"; } const profile = props.profile ?? Social.getr(`${accountId}/profile`); const fast = !props.profile; if (profile === null) { return "Loading"; } const Wrapper = styled.div` margin-top: calc(-1 * var(--body-top-padding, 0)); `; return ( <Wrapper> <ProfileLarge accountId={accountId} profile={profile} link={true} fast={fast} showEditButton={!props.profile} /> <ProfileTabs accountId={accountId} profile={profile} /> </Wrapper> ); }; return <ProfilePage />;