BlueWallet/typings/CommonToolTipActions.ts

62 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-07-04 20:45:07 +02:00
import loc from '../loc';
const keys = {
CopyTXID: 'copyTX_ID',
CopyBlockExplorerLink: 'copy_blockExplorer',
ExpandNote: 'expandNote',
OpenInBlockExplorer: 'open_in_blockExplorer',
CopyAmount: 'copyAmount',
CopyNote: 'copyNote',
};
const icons = {
Eye: {
iconValue: 'eye',
},
EyeSlash: {
iconValue: 'eye.slash',
},
Clipboard: {
iconValue: 'doc.on.doc',
},
Link: {
iconValue: 'link',
},
Note: {
iconValue: 'note.text',
},
};
export const CommonToolTipActions = {
CopyTXID: {
id: keys.CopyTXID,
text: loc.transactions.details_copy_txid,
icon: icons.Clipboard,
},
CopyBlockExplorerLink: {
id: keys.CopyBlockExplorerLink,
text: loc.transactions.details_copy_block_explorer_link,
icon: icons.Clipboard,
},
OpenInBlockExplorer: {
id: keys.OpenInBlockExplorer,
text: loc.transactions.details_show_in_block_explorer,
icon: icons.Link,
},
ExpandNote: {
id: keys.ExpandNote,
text: loc.transactions.expand_note,
icon: icons.Note,
},
CopyAmount: {
id: keys.CopyAmount,
text: loc.transactions.details_copy_amount,
icon: icons.Clipboard,
},
CopyNote: {
id: keys.CopyNote,
text: loc.transactions.details_copy_note,
icon: icons.Clipboard,
},
};