import type { OdFolderObject } from '../types' import { FC } from 'react' import emojiRegex from 'emoji-regex' import { useClipboard } from 'use-clipboard-copy' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import Link from 'next/link' import { getBaseUrl } from '../utils/getBaseUrl' import { getFileIcon } from '../utils/getFileIcon' import { humanFileSize, formatModifiedDateTime } from '../utils/fileDetails' import { Downloading, Checkbox } from './FileListing' type OdFolderChildren = OdFolderObject['value'][number] const FileListItem: FC<{ fileContent: OdFolderChildren }> = ({ fileContent: c }) => { const emojiIcon = emojiRegex().exec(c.name) const renderEmoji = emojiIcon && !emojiIcon.index return (