From ba51582e825477bec23c2aa37ba43bd6482a2a29 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Fri, 23 Aug 2024 15:53:38 -0700
Subject: implement itemprice component

---
 src/components/FFXIVWorldSelector.tsx | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

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

diff --git a/src/components/FFXIVWorldSelector.tsx b/src/components/FFXIVWorldSelector.tsx
index f2dc4cc..63eff07 100644
--- a/src/components/FFXIVWorldSelector.tsx
+++ b/src/components/FFXIVWorldSelector.tsx
@@ -1,11 +1,15 @@
 import React, { useState, useEffect } from 'react';
-
+import '../styles/ffxiv-selector.css';
 interface World {
   id: number;
   name: string;
 }
 
-const FFXIVWorldSelector: React.FC = () => {
+interface FFXIVWorldSelectorProps {
+  message: string;
+}
+
+const FFXIVWorldSelector: React.FC<FFXIVWorldSelectorProps> = ({ message = "Select a World" }) => {
   const [worlds, setWorlds] = useState<World[]>([]);
   const [selectedWorld, setSelectedWorld] = useState<string | null>(null);
 
@@ -40,9 +44,9 @@ const FFXIVWorldSelector: React.FC = () => {
   };
 
   return (
-    <div>
-      <label htmlFor="world-select">Select a world: </label>
-      <select id="world-select" onChange={handleWorldChange} value={selectedWorld || ''}>
+    <div className="ffxiv-container">
+      <label htmlFor="world-select" className="ffxiv-label">{message}</label>
+      <select id="world-select" onChange={handleWorldChange} value={selectedWorld || ''} className="ffxiv-select">
         <option value="">--Please choose an option--</option>
         {worlds.map((world) => (
           <option key={world.id} value={world.name}>
@@ -50,8 +54,7 @@ const FFXIVWorldSelector: React.FC = () => {
           </option>
         ))}
       </select>
-      {selectedWorld && <p>Selected World: {selectedWorld}</p>}
-      <button onClick={handleApplyClick}>Apply</button>
+      <button onClick={handleApplyClick} className="ffxiv-button">Apply</button>
     </div>
   );
 };
-- 
cgit v1.2.3

