Files
dify/web/app/components/workflow/skill/start-tab-content.tsx
yyh 98d1aac765 feat(skill-editor): add persistent Start tab and optimize store subscriptions
- Add START_TAB_ID constant and StartTabItem/StartTabContent components
- Default to Start tab when no file tabs are open
- Optimize zustand selectors to subscribe to specific Map values instead of
  entire Map objects, reducing unnecessary re-renders when other tabs change
- Refactor useSkillFileSave to accept precise values instead of Map/Set
2026-01-23 13:12:22 +08:00

24 lines
738 B
TypeScript

'use client'
import type { FC } from 'react'
import * as React from 'react'
import Home from '@/app/components/base/icons/src/vender/workflow/Home'
// TODO: use translations
const StartTabContent: FC = () => {
return (
<div className="flex h-full w-full flex-col items-center justify-center bg-components-panel-bg">
<div className="flex flex-col items-center gap-3">
<div className="flex size-12 items-center justify-center rounded-xl bg-components-panel-bg-blur">
<Home className="size-6 text-text-tertiary" />
</div>
<span className="system-sm-regular text-text-tertiary">
Coming soon...
</span>
</div>
</div>
)
}
export default React.memo(StartTabContent)