mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 14:56:01 +00:00
28 lines
675 B
JavaScript
28 lines
675 B
JavaScript
import React from "react";
|
|
import styled from "styled-components";
|
|
import theme from "./theme";
|
|
|
|
const files = [
|
|
{ name: "app.js" },
|
|
{ name: "BranchCategory", type: "table", selected: true },
|
|
{ name: "ApplicationList" }
|
|
];
|
|
|
|
const FileTabItem = styled.div`
|
|
border-right: 1px solid white;
|
|
padding-left: 15px;
|
|
padding-right: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
&:hover {
|
|
color: ${theme.tabsPanel.hoverFont};
|
|
}
|
|
background-color: ${props =>
|
|
props.selected ? theme.mainArea.background : "inherit"};
|
|
`;
|
|
|
|
export default function FilesTabsPanel() {
|
|
return files.map(file => <FileTabItem {...file}>{file.name}</FileTabItem>);
|
|
}
|