You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
643 B
18 lines
643 B
<script lang="ts">
|
|
import { getPickerShellHandle } from '$soma/components/picker-shell';
|
|
import type { PickerShellFooterProps } from './types';
|
|
|
|
// Generic footer container for any composite picker that exposes a
|
|
// `PickerShellHandle` via context. Pure composition — visibility is the
|
|
// consumer's responsibility (omit the part to hide it, omit children to
|
|
// hide buttons inside).
|
|
let { children, ...rest }: PickerShellFooterProps = $props();
|
|
|
|
const shell = getPickerShellHandle();
|
|
const mode = $derived(shell?.getMode() ?? 'inline');
|
|
</script>
|
|
|
|
<div data-picker-footer data-mode={mode} {...rest}>
|
|
{@render children?.()}
|
|
</div>
|