Initial work on Shares

This commit is contained in:
Deluan
2023-01-19 22:52:55 -05:00
parent 5331de17c2
commit ab04e33da6
36 changed files with 841 additions and 84 deletions
+1
View File
@@ -4,3 +4,4 @@ export * from './formatters'
export * from './intersperse'
export * from './notifications'
export * from './openInNewTab'
export * from './shareUrl'
+6
View File
@@ -0,0 +1,6 @@
import config from '../config'
export const shareUrl = (path) => {
const url = new URL(config.shareBaseUrl + '/' + path, window.location.href)
return url.href
}