• Formats status string into human-readable label (e.g., "plan_to_read" → "Plan to Read").

    Parameters

    • status: string

      The status string to format.

    Returns string

    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);
    }