'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
const defaultLayout = { swapPosition: false };
const FabLayoutContext = createContext(defaultLayout);
/**
 * Provides server-resolved FAB layout configuration to all client components.
 * Initialized in the root layout with values from the DB singleton.
 */
export function FabLayoutProvider({ children, layout }) {
    return _jsx(FabLayoutContext.Provider, { value: layout, children: children });
}
/**
 * Read FAB layout config from context. Returns default (not swapped)
 * when used outside a FabLayoutProvider (e.g., Storybook, tests).
 */
export function useFabLayout() {
    return useContext(FabLayoutContext);
}
