22 lines
334 B
TypeScript
22 lines
334 B
TypeScript
type Tab = {
|
|
disabled?: boolean;
|
|
name: string;
|
|
component: JSX.Element;
|
|
};
|
|
|
|
export interface TabsProps {
|
|
tabs: Tab[];
|
|
}
|
|
|
|
export interface TabPanelProps {
|
|
isActive: boolean;
|
|
children: JSX.Element | JSX.Element[];
|
|
}
|
|
|
|
export interface TabProps {
|
|
title: string;
|
|
isActive: boolean;
|
|
onPress(): void;
|
|
disabled: boolean;
|
|
}
|