Added an icon for txt files

This commit is contained in:
Puppet committed 2025-08-30 21:06:56 -07:00
1 parent 5e43e53290
commit 157ea67140
2 files changed
+32

No files matched your search

@@ -4,12 +4,15 @@ import Image from "next/image";
import php_icon from "./icons/php.svg";
import folder_icon from "./icons/folder.svg";
import txt_icon from "./icons/txt.svg";
export default function FileTreeRow({ name }: { name: string }) {
let file_icon = null
if (name.endsWith(".php")) {
file_icon = php_icon
} else if (name.endsWith(".txt")) {
file_icon = txt_icon
} else {
file_icon = folder_icon
}
@@ -0,0 +1,29 @@
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<line
x1="0" y1="1" x2="16" y2="1"
style="fill:none;stroke:white;stroke-width:1"
/>
<line
x1="0" y1="6.5" x2="24" y2="6.5"
style="fill:none;stroke:white;stroke-width:1"
/>
<line
x1="0" y1="12" x2="16" y2="12"
style="fill:none;stroke:white;stroke-width:1"
/>
<line
x1="0" y1="17.5" x2="24" y2="17.5"
style="fill:none;stroke:white;stroke-width:1"
/>
<line
x1="0" y1="23" x2="16" y2="23"
style="fill:none;stroke:white;stroke-width:1"
/>
</svg>

After

Width:  |  Height:  |  Size: 570 B