{"size": 814, "ext": "js", "max_stars_repo_path": "apps/image-editor/src/js/ui/template/submenu/history.js", "max_stars_repo_name": "pkmclean/tui.image-editor", "max_stars_repo_stars_event_min_datetime": "2019-04-11T16:33:07.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T15:37:43.000Z", "max_issues_repo_path": "apps/image-editor/src/js/ui/template/submenu/history.js", "max_issues_repo_name": "pkmclean/tui.image-editor", "max_issues_repo_issues_event_min_datetime": "2019-04-10T10:36:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T08:56:47.000Z", "max_forks_repo_path": "apps/image-editor/src/js/ui/template/submenu/history.js", "max_forks_repo_name": "pkmclean/tui.image-editor", "max_forks_repo_forks_event_min_datetime": "2019-04-11T14:38:19.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T20:37:45.000Z"}
{"max_stars_count": 3259, "max_issues_count": 533, "max_forks_count": 817, "avg_line_length": 35.3913043478, "max_line_length": 87, "alphanum_fraction": 0.5786240786}
/**
 * @param {Object} submenuInfo - submenu info for make template
 *   @param {Locale} locale - Translate text
 *   @param {Function} makeSvgIcon - svg icon generator
 *   @param {string} name - history name
 *   @param {string} detail - history detail information
 * @returns {string}
 */
export default ({ locale, makeSvgIcon, name, detail }) => `
    <div class="tui-image-editor-history-item history">
        <div class="history-item-icon">
            ${makeSvgIcon(['normal', 'active'], `history-${name.toLowerCase()}`, true)}
        </div>
        <span>
            ${locale.localize(name)}
            ${detail ? `(${locale.localize(detail)})` : ''}
        </span>
        <div class="history-item-checkbox">
            ${makeSvgIcon(['normal'], 'history-check', true)}
        </div>
    </div>
`;
