mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 08:13:50 +00:00
9 lines
369 B
TypeScript
9 lines
369 B
TypeScript
"use client";
|
|
|
|
import { effectiveMailLayout, useSettingsStore, type MailLayout } from "@/stores/settings-store";
|
|
|
|
/** The mail layout in force: the saved one, or `focus` under Mountain View. */
|
|
export function useEffectiveMailLayout(): MailLayout {
|
|
return useSettingsStore((state) => effectiveMailLayout(state.mailLayout, state.interfaceLayout, state.simpleMode));
|
|
}
|