"use strict";

import L from "$APP/localization/localization";

import glyph from "$WIDGETS/glyph";

export default function lemmaActions({isFavorite = false, hasNote = false} = {}) {
    return [ glyph({icon:"fav", contents: L.T(isFavorite ? "actions:unfavorite"
                                                         : "actions:favorite"),
                   props: { attrs: {"class": "fav-icon", "data-fav": isFavorite ? "yes" : "no",
                                    title: L.T(isFavorite ? "actions:unfavorite:title"
                                                          : "actions:favorite:title") } } }),
             glyph({icon:"share", title: L.T("actions:share:title"),    contents: L.T("actions:share")}),
             glyph({icon:"note",  title: L.T("actions:note:title"),     contents: L.T("actions:note")})];
}

@@ -610,24 +610,65 @@
 e%22) %7D %7D %7D),%0A
+             /* sharing disabled for now%0A
             
@@ -757,24 +757,41 @@
 :share%22)%7D),%0A
+              */%0A
             
@@ -849,21 +849,145 @@
 e%22),
+%0A
      
-contents
+              props: %7B attrs: %7B%22class%22: %22note-icon%22, %22data-note%22: hasNote ? %22yes%22 : %22no%22,%0A                                    title
 : L.
@@ -1003,15 +1003,18 @@
 s:note%22)
+%7D%7D 
 %7D)%5D;%0A%7D%0A

remove sharing; add note status