import style from "./content-bash.module.css" import { createResource, createSignal } from "solid-js" import { createOverflow } from "./common" import { codeToHtml } from "shiki" interface Props { command: string output: string description?: string expand?: boolean } export function ContentBash(props: Props) { const [commandHtml] = createResource( () => props.command, async (command) => { return codeToHtml(command || "", { lang: "bash", themes: { light: "github-light", dark: "github-dark", }, }) }, ) const [outputHtml] = createResource( () => props.output, async (output) => { return codeToHtml(output || "", { lang: "console", themes: { light: "github-light", dark: "github-dark", }, }) }, ) const [expanded, setExpanded] = createSignal(false) const overflow = createOverflow() return (