import { useSelector } from 'calypso/state'; import { getPluginOnSite } from 'calypso/state/plugins/installed/selectors'; import PluginRemoveButton from '../../plugin-remove-button'; import type { PluginComponentProps } from '../types'; import type { SiteDetails } from '@automattic/data-stores'; import '../style.scss'; interface Props { site: SiteDetails; plugin: PluginComponentProps; } export default function RemovePlugin( { site, plugin }: Props ) { const pluginOnSite = useSelector( ( state ) => getPluginOnSite( state, site.ID, plugin.slug ) ); return ( ); }