Add attribution to Mckay Wrigley
This commit is contained in:
parent
1b5811df53
commit
807ad666c2
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue