import type { ComponentChildren } from "preact"; import { FileIcon } from "@/components/Icons.tsx"; import { format_bytes } from "@/src/files.ts"; interface FileInfoProps { name: string; size: number; detail?: string; action?: ComponentChildren; } export default function FileInfo(props: FileInfoProps) { return (
{props.name}
{format_bytes(props.size)} {props.detail && ` ยท ${props.detail}`}