Formats status string into human-readable label (e.g., "plan_to_read" → "Plan to Read").
The status string to format.
Formatted, human-readable status label.
export function formatStatusLabel(status: string): string { if (status === "plan_to_read") { return "Plan to Read"; } if (status === "on_hold") { return "On Hold"; } return status.charAt(0).toUpperCase() + status.slice(1);} Copy
export function formatStatusLabel(status: string): string { if (status === "plan_to_read") { return "Plan to Read"; } if (status === "on_hold") { return "On Hold"; } return status.charAt(0).toUpperCase() + status.slice(1);}
Formats status string into human-readable label (e.g., "plan_to_read" → "Plan to Read").