Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 lines
256 B
TypeScript
11 lines
256 B
TypeScript
export const SIDEBAR_STORAGE_KEY = "polaris.sidebar.collapsed"
|
|
|
|
export function parseSidebarPreference(
|
|
value: string | null,
|
|
fallback: boolean,
|
|
): boolean {
|
|
if (value === "true") return true
|
|
if (value === "false") return false
|
|
return fallback
|
|
}
|