synapsecns/sanguine

View on GitHub
packages/synapse-interface/slices/bridge/hooks.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { RootState } from '@/store/store'
import { useAppSelector } from '@/store/hooks'

export const useBridgeState = (): RootState['bridge'] => {
  return useAppSelector((state) => state.bridge)
}

export const useBridgeDisplayState = (): RootState['bridgeDisplay'] => {
  return useAppSelector((state) => state.bridgeDisplay)
}