aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/Tabs/TabItem.tsx
blob: 55dee42c6f06d15b7ca9afd8052cf44398f43751 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Fragment, ReactElement } from 'react';

export interface IProps {
  children:
    | string
    | ReactElement<HTMLInputElement>
    | (
        | boolean
        | ReactElement<HTMLInputElement>
        | ReactElement<HTMLParagraphElement>
      )[];
  title?: string; // it is used on Tabs.tsx
}

const TabItem = ({ children, title = '' }: IProps): ReactElement => {
  return <Fragment key={title}>{children}</Fragment>;
};

export default TabItem;