frontend/src/sidebar/PageTitle.svelte
raw| 1 | <script lang="ts"> |
| 2 | import AccountPageTitle from "./AccountPageTitle.svelte"; |
| 3 | import { page_title } from "./page-title"; |
| 4 | |
| 5 | let { title, type } = $derived($page_title); |
| 6 | |
| 7 | let is_account = $derived(type === "account"); |
| 8 | </script> |
| 9 | |
| 10 | <strong> |
| 11 | {#if !is_account} |
| 12 | {title} |
| 13 | {:else} |
| 14 | <AccountPageTitle account={title} /> |
| 15 | {/if} |
| 16 | </strong> |
| 17 | |
| 18 | <style> |
| 19 | strong::before { |
| 20 | margin: 0 10px; |
| 21 | font-weight: normal; |
| 22 | content: "›"; |
| 23 | opacity: 0.5; |
| 24 | } |
| 25 | </style> |