From 3aa6eee0f54dec3e4f92be2ad335a04145ac4db8 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>
Date: Mon, 3 Mar 2025 18:54:35 +0100
Subject: Improve the UI

---
 src/components/LineIcon.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 src/components/LineIcon.tsx

(limited to 'src/components/LineIcon.tsx')

diff --git a/src/components/LineIcon.tsx b/src/components/LineIcon.tsx
new file mode 100644
index 0000000..50fd1ec
--- /dev/null
+++ b/src/components/LineIcon.tsx
@@ -0,0 +1,17 @@
+import React from 'react';
+import './LineIcon.css';
+
+interface LineIconProps {
+  line: string;
+}
+
+const LineIcon: React.FC<LineIconProps> = ({ line }) => {
+  const formattedLine = /^[a-zA-Z]/.test(line) ? line : `L${line}`;
+  return (
+    <span className={`line-icon line-${formattedLine.toLowerCase()}`}>
+      {formattedLine}
+    </span>
+  );
+};
+
+export default LineIcon;
\ No newline at end of file
-- 
cgit v1.3

