diff --git a/apps/web/src/components/FishSilhouette.astro b/apps/web/src/components/FishSilhouette.astro index db4b9de..6a24645 100644 --- a/apps/web/src/components/FishSilhouette.astro +++ b/apps/web/src/components/FishSilhouette.astro @@ -1,9 +1,16 @@ --- -const { name, size = 92 } = Astro.props as { name: string; size?: number }; -const variant = [...name].reduce((sum, char) => sum + (char.codePointAt(0) ?? 0), 0) % 3; +import { fishVisualFamily, type FishVisualFamily } from "../lib/fish-visuals"; +const { name, size = 92, family: familyOverride } = Astro.props as { name: string; size?: number; family?: FishVisualFamily }; +const family = familyOverride ?? fishVisualFamily(name); --- -