@expofp/floorplan
Version:
Interactive floor plan library for expos and events
2 lines (1 loc) • 881 B
JavaScript
import{jsx as i}from"react/jsx-runtime";import{observer as t}from"mobx-react-lite";import c from"../ui/Share";import{t as o}from"../utils/i18n";const l=t(({title:e,url:a})=>{const r=encodeURIComponent(a),n=[{network:"facebook",name:"Facebook",url:`https://www.facebook.com/sharer/sharer.php?u=${r}`,ariaLabel:o("Share {{title}} on Facebook",{title:e})},{network:"xcom",name:"X.COM",url:`https://x.com/share?url=${r}`,ariaLabel:o("Share {{title}} on X.com",{title:e})},{network:"linkedin",name:"LinkedIn",url:`https://linkedin.com/shareArticle?url=${r}`,ariaLabel:o("Share {{title}} on LinkedIn",{title:e})}];return i(c,{title:e,url:a,shareHeading:o("Share"),socials:n,copyLinkSectionLabel:o("or copy link"),directLinkAriaLabel:o("Direct link to {{title}}",{title:e}),copyButtonAriaLabel:o("Copy link to clipboard"),copyLabel:o("Copy"),copiedLabel:o("Copied")})});export default l;