From 00d476a0e51629f06407aed035fbc001d3f6b114 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Fri, 26 Jun 2026 21:55:46 -0700
Subject: initial guess MV mode

---
 src/components/Search/index.tsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'src/components/Search/index.tsx')

diff --git a/src/components/Search/index.tsx b/src/components/Search/index.tsx
index 4d1ae83..72ce8a1 100644
--- a/src/components/Search/index.tsx
+++ b/src/components/Search/index.tsx
@@ -8,9 +8,11 @@ import * as Styled from "./index.styled";
 interface Props {
   currentTry: number;
   setSelectedSong: React.Dispatch<React.SetStateAction<Song | undefined>>;
+  /** Optional override of the song pool to search within. */
+  songs?: Song[];
 }
 
-export function Search({ currentTry, setSelectedSong }: Props) {
+export function Search({ currentTry, setSelectedSong, songs }: Props) {
   const [value, setValue] = React.useState("");
   const [results, setResults] = React.useState<Song[]>([]);
 
@@ -20,8 +22,8 @@ export function Search({ currentTry, setSelectedSong }: Props) {
       return;
     }
 
-    setResults(searchSong(value));
-  }, [value]);
+    setResults(searchSong(value, songs));
+  }, [value, songs]);
 
   React.useEffect(() => {
     setValue("");
-- 
cgit v1.2.3

