2025-02-04 00:37:14 +00:00
|
|
|
<script lang="ts">
|
2025-03-19 17:30:36 +00:00
|
|
|
import type {Snippet} from "svelte"
|
|
|
|
|
|
2025-02-04 00:37:14 +00:00
|
|
|
interface Props {
|
2025-03-19 17:30:36 +00:00
|
|
|
icon?: Snippet
|
|
|
|
|
title?: Snippet
|
|
|
|
|
action?: Snippet
|
2025-02-04 00:37:14 +00:00
|
|
|
[key: string]: any
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-04 01:21:46 +00:00
|
|
|
const {...props}: Props = $props()
|
2025-02-04 00:37:14 +00:00
|
|
|
</script>
|
|
|
|
|
|
2025-05-08 16:07:24 +00:00
|
|
|
<div data-component="PageBar" class="cw fixed top-2 z-feature rounded-xl px-2 pt-2 {props.class}">
|
2024-10-09 23:11:23 +00:00
|
|
|
<div
|
|
|
|
|
class="flex min-h-12 items-center justify-between gap-4 rounded-xl bg-base-100 px-4 shadow-xl">
|
2025-03-04 18:00:24 +00:00
|
|
|
<div class="ellipsize flex items-center gap-4 whitespace-nowrap">
|
2025-02-04 00:37:14 +00:00
|
|
|
{@render props.icon?.()}
|
|
|
|
|
{@render props.title?.()}
|
2024-10-09 23:11:23 +00:00
|
|
|
</div>
|
2025-02-04 00:37:14 +00:00
|
|
|
{@render props.action?.()}
|
2024-10-09 23:11:23 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|