diff options
Diffstat (limited to 'src/components/ui/Tabs/TabItem.tsx')
-rw-r--r-- | src/components/ui/Tabs/TabItem.tsx | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx index 631586d62..815dced8c 100644 --- a/src/components/ui/Tabs/TabItem.tsx +++ b/src/components/ui/Tabs/TabItem.tsx | |||
@@ -1 +1,19 @@ | |||
1 | export default ({ children }) => <>{children}</>; | 1 | import { Fragment, ReactElement } from 'react'; |
2 | |||
3 | export interface IProps { | ||
4 | children: | ||
5 | | string | ||
6 | | ReactElement<HTMLInputElement> | ||
7 | | ( | ||
8 | | boolean | ||
9 | | ReactElement<HTMLInputElement> | ||
10 | | ReactElement<HTMLParagraphElement> | ||
11 | )[]; | ||
12 | title?: string; // it is used on Tabs.tsx | ||
13 | } | ||
14 | |||
15 | function TabItem({ children, title = '' }: IProps): ReactElement { | ||
16 | return <Fragment key={title}>{children}</Fragment>; | ||
17 | } | ||
18 | |||
19 | export default TabItem; | ||