import type { TerminalTheme } from "@/constants/terminal-themes"; import { TERMINAL_THEMES, TERMINAL_FONTS } from "@/constants/terminal-themes"; interface TerminalPreviewProps { theme: string; fontSize?: number; fontFamily?: string; cursorStyle?: "block" | "underline" | "bar"; cursorBlink?: boolean; letterSpacing?: number; lineHeight?: number; } export function TerminalPreview({ theme = "termix", fontSize = 14, fontFamily = "Caskaydia Cove Nerd Font Mono", cursorStyle = "bar", cursorBlink = true, letterSpacing = 0, lineHeight = 1.2, }: TerminalPreviewProps) { return (
f.value === fontFamily)?.fallback || TERMINAL_FONTS[0].fallback, letterSpacing: `${letterSpacing}px`, lineHeight, background: TERMINAL_THEMES[theme]?.colors.background || "#18181b", color: TERMINAL_THEMES[theme]?.colors.foreground || "#f7f7f7", }} >
user@termix : ~ $ ls -la
drwxr-xr-x 5 user docs
-rwxr-xr-x 1 user script.sh
-rw-r--r-- 1 user README.md
user@termix : ~ $
); }