import { ClipboardList, ArrowRight } from 'lucide-react';
import type { Protocol, PaperSummary } from '@/types';
import { cn } from '@/lib/utils';
interface ProtocolPanelProps {
protocol: Protocol | null;
paper: PaperSummary;
className?: string;
}
export default function ProtocolPanel({ protocol, paper, className }: ProtocolPanelProps) {
if (!protocol) {
return (
Current Protocol
No protocol proposed yet
);
}
return (
Current Protocol
Equipment
{protocol.required_equipment.map((e) => ())}
Reagents
{protocol.required_reagents.map((r) => ())}
);
}
function DiffRow({ label, original, current }: { label: string; original: string; current: string }) {
const changed = original !== current;
return (
{label}
{original}
{changed && (<>
{current}>)}
{!changed &&
unchanged}
);
}
function Tag({ label }: { label: string }) {
return {label.replace(/_/g, ' ')};
}