Add attribution to Mckay Wrigley

This commit is contained in:
Jared Palmer 2023-07-31 19:21:38 -04:00
parent 1b5811df53
commit 807ad666c2
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,6 @@
// Inspired by Chatbot-UI and modified to fit the needs of this project
// @see https://github.com/mckaywrigley/chatbot-ui/blob/main/components/Markdown/CodeBlock.tsx
'use client'
import { FC, memo } from 'react'
@ -90,8 +93,8 @@ const CodeBlock: FC<Props> = memo(({ language, value }) => {
}
return (
<div className="codeblock relative w-full bg-zinc-950 font-sans">
<div className="flex w-full items-center justify-between bg-zinc-800 px-6 py-2 pr-4 text-zinc-100">
<div className="relative w-full font-sans codeblock bg-zinc-950">
<div className="flex items-center justify-between w-full px-6 py-2 pr-4 bg-zinc-800 text-zinc-100">
<span className="text-xs lowercase">{language}</span>
<div className="flex items-center space-x-1">
<Button