import { html } from 'lit';
import { getNumberPrefix } from './get-number-prefix.js';
import { checkboxChecked, checkboxUnchecked, points, toggleDown, toggleRight, } from './icons.js';
export function ListIcon(model, index, depth, showChildren, onClick) {
    switch (model.type) {
        case 'bulleted':
            return html `<div class="affine-list-block__prefix" @click=${onClick}>
        ${points[depth % points.length]}
      </div>`;
        case 'numbered':
            return html `<div
        class="affine-list-block__prefix affine-list-block__numbered"
        @click=${onClick}
      >
        ${getNumberPrefix(index, depth)}
      </div>`;
        case 'todo':
            return html `<div
        class="affine-list-block__prefix affine-list-block__todo-prefix"
        @click=${onClick}
      >
        ${model.checked ? checkboxChecked() : checkboxUnchecked()}
      </div>`;
        case 'toggle':
            return html `<div class="affine-list-block__prefix" @click=${onClick}>
        ${showChildren ? toggleDown : toggleRight}
      </div>`;
        default:
            console.error('Unknown list type', model.type, model);
            return null;
    }
}
//# sourceMappingURL=get-list-icon.js.map