// import React from 'react'; // import styled from 'styled-components'; // import useTheme from '../theme/useTheme'; // import { useSetOpenedTabs } from '../utility/globalState'; // import { extractPluginIcon, extractPluginAuthor } from '../plugins/manifestExtractors'; // import useOpenNewTab from '../utility/useOpenNewTab'; // const Wrapper = styled.div` // margin: 1px 3px 10px 5px; // display: flex; // align-items: center; // &:hover { // background-color: ${props => props.theme.left_background_blue[1]}; // } // `; // const Texts = styled.div` // margin-left: 10px; // `; // const Name = styled.div` // font-weight: bold; // `; // const Line = styled.div` // display: flex; // `; // const Icon = styled.img` // width: 50px; // height: 50px; // `; // const Description = styled.div` // font-style: italic; // `; // const Author = styled.div` // font-weight: bold; // `; // const Version = styled.div` // margin-left: 5px; // `; // function openPlugin(openNewTab, packageManifest) { // openNewTab({ // title: packageManifest.name, // icon: 'icon plugin', // tabComponent: 'PluginTab', // props: { // packageName: packageManifest.name, // }, // }); // } // function PluginsListItem({ packageManifest }) { // const openNewTab = useOpenNewTab(); // const theme = useTheme(); // return ( // openPlugin(openNewTab, packageManifest)} theme={theme}> // // // // {packageManifest.name} // {packageManifest.version} // // // {packageManifest.description} // // // {extractPluginAuthor(packageManifest)} // // // // ); // } // export default function PluginsList({ plugins }) { // return ( // <> // {plugins.map(packageManifest => ( // // ))} // // ); // }