import React from 'react';

export interface TabPanelProps {
    index: number,
    selected: number,
    children?: React.ReactNode | React.ReactNode[] | any
}

export const TabPanel: React.FC<TabPanelProps> = ({ index, selected, children }) => {
    return (
        <>
            {index === selected && children}
        </>
    )
}