Files
clash-verge-rev/src/hooks/use-clash-log.ts
T
Tunglies 186ec116fa refactor(frontend): outfox foxact, foxts, and eslint-plugin-sukka (#8808)
* chore(eslint): remove eslint-plugin-sukka

* refactor(frontend): remove foxts and inline local utilities

* refactor(frontend): remove foxact and replace with local hooks

* refactor(proxy): reuse local storage for group preferences
2026-12-02 01:34:55 +00:00

12 lines
262 B
TypeScript

import { useLocalStorage } from './use-local-storage'
const defaultClashLog: IClashLog = {
enable: true,
logLevel: 'INFO',
logFilter: 'all',
logOrder: 'asc',
}
export const useClashLog = () =>
useLocalStorage<IClashLog>('clash-log', defaultClashLog)