import { customElement, property } from "lit/decorators.js";
import { ClientConsumer } from "../ClientConsumer";
import { FolderInfo } from "@labir/server";
import { css, CSSResultGroup, html, nothing } from "lit";
@customElement("user-folders")
export class UserFolders extends ClientConsumer {
@property({ type: Array })
folders: FolderInfo[] = [];
@property({ type: Function })
onFolderClick?: (folder: FolderInfo) => void;
public static styles?: CSSResultGroup | undefined = css`
:host {
color: var(--thermal-foreground);
}
table {
display: table;
width: 100%;
border-collapse: collapse;
height: 1px;
border: 0;
}
.list-label {
font-size: .8em;
color: var(--thermal-slate-dark);
line-height: 1;
margin: 0;
padding: 0;
font-weight: normal;
padding-bottom: 1em;
}
`;
protected renderSubfolder(info: FolderInfo): unknown {
return html`