import AlertLink from 'sentry/components/alertLink'; import {Button} from 'sentry/components/button'; import EmptyMessage from 'sentry/components/emptyMessage'; import ExternalLink from 'sentry/components/links/externalLink'; import Panel from 'sentry/components/panels/panel'; import PanelBody from 'sentry/components/panels/panelBody'; import PanelHeader from 'sentry/components/panels/panelHeader'; import RepositoryRow from 'sentry/components/repositoryRow'; import {IconCommit} from 'sentry/icons'; import {t, tct} from 'sentry/locale'; import {Organization, Repository, RepositoryStatus} from 'sentry/types'; import useApi from 'sentry/utils/useApi'; import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader'; import TextBlock from 'sentry/views/settings/components/text/textBlock'; type Props = { itemList: Repository[]; onRepositoryChange: (data: {id: string; status: RepositoryStatus}) => void; organization: Organization; }; function OrganizationRepositories({itemList, onRepositoryChange, organization}: Props) { const api = useApi(); const hasItemList = itemList && itemList.length > 0; return (