DUET / src /lib /utils /models.ts
unbrandedhuman's picture
Upload 83 files
1e95ed5
raw
history blame contribute delete
161 Bytes
import type { Model } from "$lib/types/Model";
export const findCurrentModel = (models: Model[], id?: string) =>
models.find((m) => m.id === id) ?? models[0];