mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
feat: BlogsPage
This commit is contained in:
21
src/components/common/TabCommon/TabItem/TabItem.tsx
Normal file
21
src/components/common/TabCommon/TabItem/TabItem.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
Reference in New Issue
Block a user