Pinafore-Web-Client-Frontend/src/routes/_pages/direct.html

33 lines
863 B
HTML
Raw Normal View History

{#if $isUserLoggedIn}
<TimelinePage timeline="direct">
{#if $pinnedPage !== '/direct'}
<DynamicPageBanner title="Direct messages" icon="#fa-envelope"/>
{/if}
</TimelinePage>
{:else}
<HiddenFromSSR>
<FreeTextLayout>
<h1>Conversations</h1>
<p>Your conversations will appear here when logged in.</p>
</FreeTextLayout>
</HiddenFromSSR>
{/if}
<script>
import TimelinePage from '../_components/TimelinePage.html'
import FreeTextLayout from '../_components/FreeTextLayout.html'
import { store } from '../_store/store.js'
import HiddenFromSSR from '../_components/HiddenFromSSR'
import DynamicPageBanner from '../_components/DynamicPageBanner.html'
export default {
store: () => store,
components: {
TimelinePage,
FreeTextLayout,
HiddenFromSSR,
DynamicPageBanner
}
}
</script>