use leptos::*;

#[component]
pub fn CodeBlock(cx: Scope, children: Children) -> impl IntoView {
    view! {cx,
        <pre class="p-4 m-4 bg-slate-700 rounded-lg overflow-x-scroll">{children(cx)}</pre>
    }
}
