import { BlockConfig, BlockFromConfigNoChildren, } from "../../../../schema/index.js"; export const FILE_ICON_SVG = ``; export const createFileNameWithIcon = ( block: BlockFromConfigNoChildren< BlockConfig< string, { name: { default: "" }; }, "none" >, any, any >, ): { dom: HTMLElement; destroy?: () => void } => { const file = document.createElement("div"); file.className = "bn-file-name-with-icon"; const icon = document.createElement("div"); icon.className = "bn-file-icon"; icon.innerHTML = FILE_ICON_SVG; file.appendChild(icon); const fileName = document.createElement("p"); fileName.className = "bn-file-name"; fileName.textContent = block.props.name; file.appendChild(fileName); return { dom: file, }; };