Hide Share menu entry when sharing is unavailable
buildFileItems was always emitting the "Share…" row regardless of
whether props.onShare was defined. In workspace context PanelContent
passes onShare=undefined (lexicon for workspace-scoped sharing isn't
in the protocol yet), so DropdownMenu was rendering a dead entry that
did nothing on click. Gate the row on props.onShare like the other
conditional actions above it.