moved video card to components and renamed to video
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
e1c0a1082c
commit
0efd9ed1f8
@ -1,4 +1,4 @@
|
|||||||
export interface TrendingVideo {
|
export interface VideoPreview {
|
||||||
title: string;
|
title: string;
|
||||||
thumbnail: string;
|
thumbnail: string;
|
||||||
id: string;
|
id: string;
|
@ -0,0 +1,23 @@
|
|||||||
|
import { Component } from "@/typings/component";
|
||||||
|
import { Listbox, ListboxItem } from "@nextui-org/listbox";
|
||||||
|
|
||||||
|
export interface ContextMenuItem {
|
||||||
|
title: string;
|
||||||
|
key: string;
|
||||||
|
href?: string;
|
||||||
|
onClick?: () => any;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const ContextMenu: Component<{ menu: ContextMenuItem[] }> = ({
|
||||||
|
menu
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<Listbox aria-label="Context Menu">
|
||||||
|
{menu.map((item) => (
|
||||||
|
<ListboxItem onClick={item.onClick} key={item.key} href={item.href}>
|
||||||
|
{item.title}
|
||||||
|
</ListboxItem>
|
||||||
|
))}
|
||||||
|
</Listbox>
|
||||||
|
);
|
||||||
|
};
|
Loading…
Reference in new issue