({
tabs,
selected,
setSelected,
center,
customID,
icons = [],
}: AnimatedTabsProps)
| 61 | } |
| 62 | |
| 63 | const AnimatedTabs = ({ |
| 64 | tabs, |
| 65 | selected, |
| 66 | setSelected, |
| 67 | center, |
| 68 | customID, |
| 69 | icons = [], |
| 70 | }: AnimatedTabsProps) => { |
| 71 | return ( |
| 72 | <div |
| 73 | className={ |
| 74 | (center ? 'justify-center ' : '') + |
| 75 | 'flex w-full items-center justify-end gap-2 border-gray-500/25 pb-1 ' |
| 76 | } |
| 77 | > |
| 78 | {tabs?.map((tab, index) => ( |
| 79 | <Tab |
| 80 | text={tab} |
| 81 | selected={selected === tab} |
| 82 | setSelected={setSelected} |
| 83 | key={tab} |
| 84 | customID={customID} |
| 85 | icon={icons[index]} |
| 86 | /> |
| 87 | ))} |
| 88 | </div> |
| 89 | ) |
| 90 | } |
| 91 | |
| 92 | export default AnimatedTabs |
nothing calls this directly
no outgoing calls
no test coverage detected