import { motion } from "framer-motion"; import React from "react"; import Text from "../Text"; const Tab = (props: { children?: React.ReactNode; onClick?: () => void; onTabClick?: () => void; selected?: boolean; parentKey?: string; tabWidth?: string; }) => { const { selected, onClick, onTabClick, children, parentKey, tabWidth, } = props; return (
  • { onClick && onClick(); onTabClick && onTabClick(); }} >
    {children}
    {selected && ( )}
  • ); }; Tab.defaultProps = { __TYPE: "Tab", }; export default Tab;