mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
21 lines
436 B
TypeScript
21 lines
436 B
TypeScript
import classNames from "classnames";
|
|
import React from "react"
|
|
import s from './TabItem.module.scss'
|
|
|
|
interface TabItemProps {
|
|
active: string;
|
|
target?: string;
|
|
children?: string;
|
|
}
|
|
|
|
const TabItem = ({ active = "", children } : TabItemProps) => {
|
|
return (
|
|
<span className={classNames(s.tabItem, {
|
|
[s[active]]: active
|
|
})}>
|
|
{children}
|
|
</span>
|
|
)
|
|
}
|
|
|
|
export default TabItem; |