mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
chore(web): new lint setup (#30020)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import type { FeatureStoreState } from './store'
|
||||
import { useContext } from 'react'
|
||||
import { useStore } from 'zustand'
|
||||
import { FeaturesContext } from './context'
|
||||
import type { FeatureStoreState } from './store'
|
||||
|
||||
export function useFeatures<T>(selector: (state: FeatureStoreState) => T): T {
|
||||
const store = useContext(FeaturesContext)
|
||||
|
||||
Reference in New Issue
Block a user