All files / src/components/chat NewTaskPreview.tsx

44.44% Statements 4/9
100% Branches 0/0
0% Functions 0/1
44.44% Lines 4/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181x 1x           1x                 1x  
import React from "react"
import MarkdownBlock from "../common/MarkdownBlock"
 
interface NewTaskPreviewProps {
	context: string
}
 
const NewTaskPreview: React.FC<NewTaskPreviewProps> = ({ context }) => {
	return (
		<div className="bg-[var(--vscode-badge-background)] text-[var(--vscode-badge-foreground)] rounded-[3px] p-[14px] pb-[6px]">
			<span style={{ fontWeight: "bold" }}>Task</span>
			<MarkdownBlock markdown={context} />
		</div>
	)
}
 
export default NewTaskPreview