import { useLayoutStore } from './layoutStore';

/**
 * Compatibilidad: vistas legacy que usaban useStateStore().
 * Delega al layout store de Pinia (Vue 3).
 */
export function useStateStore() {
    const layout = useLayoutStore();

    return {
        get current_state() {
            return {
                get layout() {
                    return layout.layout;
                },
                set layout(value) {
                    layout.setLayout(value);
                },
            };
        },
        setLayout: layout.setLayout,
    };
}
