mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
- 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
24 lines
738 B
TypeScript
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)
|