From ce0227d3ad947253031122a2e7e2807ec7f96fa4 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Fri, 7 Nov 2025 12:56:30 -0800
Subject: chore: change ScoreDisplayProps and Score to be shared types

---
 .../src/components/displays/NostalgiaScoreDisplay.tsx | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

(limited to 'frontend/src/components/displays/NostalgiaScoreDisplay.tsx')

diff --git a/frontend/src/components/displays/NostalgiaScoreDisplay.tsx b/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
index 063d449..370aa8e 100644
--- a/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
+++ b/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
@@ -1,26 +1,9 @@
 import React from "react";
 import SHA1 from "crypto-js/sha1";
 import { Link } from "react-router";
+import type {Score, ScoreDisplayProps} from "../../types/game";
 import { globalSkipKeys } from "../../types/constants";
 
-interface Score {
-  // eslint-disable-next-line @typescript-eslint/no-explicit-any
-  [key: string]: any;
-  timestamp: string | number;
-  username?: string;
-}
-
-interface ScoreDisplayProps {
-  scores: Score[];
-  viewMode: "cards" | "table";
-  sortField: string;
-  sortDirection: "asc" | "desc";
-  onSort: (field: string) => void;
-  onDelete?: (scoreId: number) => void;
-  showUsername?: boolean;
-  hideTitleArtist?: boolean;
-}
-
 const NostalgiaScoreDisplay: React.FC<ScoreDisplayProps> = ({
   scores,
   viewMode,
-- 
cgit v1.2.3

