Skip to content

Commit

Permalink
Introduce useIpv6Address
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Feb 2, 2023
1 parent 58e9100 commit 9dd3c30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hooks/useIpv6Address.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { wrapBasicFunction } from '../utils/basic_hook';

// Gets the current IPv6 address
// Returns undefined if fully not available
export const useIpv6Address = wrapBasicFunction(() => fully.getIp6Address());
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

export * from './hooks/useCurrentLocale';
export * from './hooks/useIpv4Address';
export * from './hooks/useIpv6Address';

0 comments on commit 9dd3c30

Please sign in to comment.