"use client";

import { Snippet } from "@prisma/client";
import { Editor } from "@monaco-editor/react";

interface SnippetShowFormProps {
  snippet: Snippet;
}

export default function SnippetShowForm({ snippet }: SnippetShowFormProps) {
  return (
    <div>
      <Editor
        height="40vh"
        theme="vs-light"
        language="c"
        defaultValue={snippet.code}
        options={{ minimap: { enabled: false } }}
      />
    </div>
  );
}
