Utilities
Dates
Date parsing and manipulation is managed by Date FNS.
Formatting
When formatting dates defer to using the next-intl date and time utilities so that they are localised based on the users locale.
Addresses
Address lookups are provided by Fetchify.
2 hooks are available to simplify fetching addresses.
useSearchAddress
useSearchAddress exposes the search method which takes an address string to search against all the addresses in the specified country. An array of all possible addresses is returned along with a unique id which can be used to retrieve an addresses specifics using useRetrieveAddress.
useRetrieveAddress
useRetrieveAddress exposes the retrieve method which takes a unique id provided by Fetchify and returns a detailed object detailing specifics about an address.