import { GlobalStyleColors } from '@roleypoly/design-system/atoms/colors'; import { Footer } from '@roleypoly/design-system/molecules/footer'; import * as Masthead from '@roleypoly/design-system/organisms/masthead'; import { DiscordUser, GuildSlug } from '@roleypoly/types'; import * as React from 'react'; import { Scrollbars } from 'react-custom-scrollbars'; import { Content, GlobalStyles } from './AppShell.styled'; export type AppShellProps = { children: React.ReactNode; user?: DiscordUser; showFooter?: boolean; small?: boolean; activeGuildId?: string | null; guilds?: GuildSlug[]; recentGuilds?: string[]; disableGuildPicker?: boolean; skeleton?: boolean; }; const OptionallyScroll = (props: { shouldScroll: boolean; children: React.ReactNode; }) => { if (props.shouldScroll) { return ( {props.children} ); } return <>{props.children}; }; export const AppShell = (props: AppShellProps) => ( <> {props.skeleton ? ( ) : props.user ? ( ) : ( )} <> {props.children} {props.showFooter &&