2026-01-22 16:56:41 +00:00

17 lines
510 B
TypeScript

/**
* Settings page helpers.
*/
import { arraysEqual } from "@/lib/utils"
import type { ResumeProjectsSettings } from "@shared/types"
export function resumeProjectsEqual(a: ResumeProjectsSettings, b: ResumeProjectsSettings) {
return (
a.maxProjects === b.maxProjects &&
arraysEqual(a.lockedProjectIds, b.lockedProjectIds) &&
arraysEqual(a.aiSelectableProjectIds, b.aiSelectableProjectIds)
)
}
export const formatSecretHint = (hint: string | null) => (hint ? `${hint}********` : "Not set")