mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
26 lines
640 B
TypeScript
26 lines
640 B
TypeScript
import type { FC } from 'react'
|
|
import type { SkillTabItem } from './mock-data'
|
|
import * as React from 'react'
|
|
import { cn } from '@/utils/classnames'
|
|
import EditorTabItem from './editor-tab-item'
|
|
|
|
type EditorTabsProps = {
|
|
items: SkillTabItem[]
|
|
}
|
|
|
|
const EditorTabs: FC<EditorTabsProps> = ({ items }) => {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
'flex items-center overflow-hidden rounded-t-lg border-b border-components-panel-border-subtle bg-components-panel-bg-alt',
|
|
)}
|
|
>
|
|
{items.map(item => (
|
|
<EditorTabItem key={item.id} item={item} />
|
|
))}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default React.memo(EditorTabs)
|