All files / Tab TabPanel.tsx

90.9% Statements 10/11
60% Branches 3/5
100% Functions 1/1
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  2x     2x 1x 1x   1x 1x   2x 2x   2x        
import * as React from "react";
import styled from "styled-components";
import { TabPanelProps } from "./TabPanel.types";
 
const TabPanel: React.FC<TabPanelProps> = ({
  children,
  selected = false,
}: TabPanelProps) => {
  Iif(!selected) return null;
  return <StyledTabPanel>{children}</StyledTabPanel>;
};
export default TabPanel;
TabPanel.displayName = "TabPanel";
 
const StyledTabPanel = styled.div`
  display: flex;
  flex-direction: column;
`;