diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 1784d12..0427bdf 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -10,7 +10,7 @@ import type { TeamSnapTokenResponse, } from "./types"; -const API_BASE = import.meta.env.VITE_API_BASE_URL ?? "http://localhost:8000"; +export const API_BASE = import.meta.env.VITE_API_BASE_URL ?? "http://localhost:8000"; type UploadAssetPayload = { teamId: string; diff --git a/frontend/src/components/ClipSummaryRow.tsx b/frontend/src/components/ClipSummaryRow.tsx new file mode 100644 index 0000000..b00e2d5 --- /dev/null +++ b/frontend/src/components/ClipSummaryRow.tsx @@ -0,0 +1,44 @@ +import type { ReactNode } from "react"; + +import type { AudioClip } from "../api/types"; + +export function ClipSummaryRow({ + clip, + isPlaying, + onTogglePlayback, + titleExtras, + subtitle, + actions, + isPlaybackAvailable = true, +}: { + clip: AudioClip; + isPlaying: boolean; + onTogglePlayback: () => void; + titleExtras?: ReactNode; + subtitle?: ReactNode; + actions?: ReactNode; + isPlaybackAvailable?: boolean; +}) { + return ( +
+
+