mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-22 23:22:27 -04:00
Refactor popup and modal to display the same thing
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user