def _prompt_from_message(message: str | None = None, default: str | None = None) -> str:
    """Returns an input prompt."""
    if not message:
        return ''

    prompt_parts = [message]

    if default is not None:
        prompt_parts.append(f' (default "{default}")')

    prompt_parts.append(': ')

    return ''.join(prompt_parts)