mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-12-02 05:23:39 +08:00
10 lines
204 B
TypeScript
10 lines
204 B
TypeScript
|
import { useSnapshot } from 'valtio'
|
||
|
import settings from '../states/settings'
|
||
|
|
||
|
function useSettings() {
|
||
|
const settingsState = useSnapshot(settings)
|
||
|
return settingsState
|
||
|
}
|
||
|
|
||
|
export default useSettings
|