                 >
                     <Icon name='plus-circle' /> <HiddenSM>New</HiddenSM>
                 </Button>
-                <Button
-                    bsSize={'small'}
-                    disabled={@props.show_library}
-                    onClick={=>@props.actions.toggle_library(true)}
-                >
-                    <Icon name='book' /> <HiddenSM>Library</HiddenSM>
-                </Button>
+                {@render_library_button()}
                 <Button bsSize='small' className="upload-button">
                     <Icon name='upload' /> <HiddenSM>Upload</HiddenSM>
                 </Button>

                            actions      = {@props.actions}
                            show_new     = {@props.show_new}
                            show_library = {@props.show_library}
                        />
                    }
                </div>

    displayName : 'ProjectFiles-ProjectFilesButtons'

    propTypes :
        kucalc       : rtypes.string
        show_hidden  : rtypes.bool
        public_view  : rtypes.bool
        show_new     : rtypes.bool
