Refactor popup and modal to display the same thing

This commit is contained in:
Zoe Roux
2026-03-12 10:21:04 +01:00
parent 64b3ad437c
commit f4be92f190
5 changed files with 135 additions and 180 deletions
+4 -3
View File
@@ -1,15 +1,16 @@
import { H1, P, Popup } from "~/primitives";
import { P, Popup } from "~/primitives";
export const EntrySelect = ({
name,
videos,
close,
}: {
name: string;
videos: { slug: string; path: string }[];
close?: () => void;
}) => {
return (
<Popup>
<H1>{name}</H1>
<Popup title={name} close={close}>
{videos.map((x) => (
<P key={x.slug}>{x.path}</P>
))}