blob: 815dced8cef60f23ec15d1650c95cac5837f376b (
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
}
function TabItem({ children, title = '' }: IProps): ReactElement {
return <Fragment key={title}>{children}</Fragment>;
}
export default TabItem;
|