Skip to content

Instantly share code, notes, and snippets.

View goodwin64's full-sized avatar
:octocat:

Max Donchenko goodwin64

:octocat:
View GitHub Profile
import path from 'path';
import express from 'express';
import fileUpload from 'express-fileupload';
import { pythonRunningProcess, spawnPythonProcess } from './spawn-python-process';
import { useRunningPythonServer } from './use-running-python-server';
const downloadsFolder = path.resolve(__dirname, './downloads');
let isProcessing = false;
export const SingleMessage: FC<Message & { highlight: boolean; index?: number }> = ({
id,
author,
createdAt,
content,
highlight,
index,
}) => {
const [messageTime, setMessageTime] = useState<string>(() =>
calculateCommentTime(createdAt, new Date()),