You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
468 B
24 lines
468 B
"use client";
|
|
|
|
import { Item } from "@/client/typings/item";
|
|
|
|
import { Video } from "@/components/Video";
|
|
|
|
import { Component } from "@/typings/component";
|
|
|
|
export const Related: Component<{ data: Item[] }> = ({ data }) => {
|
|
return (
|
|
<div className="flex flex-col gap-4">
|
|
{data.map((item) => {
|
|
switch (item.type) {
|
|
case "video":
|
|
return <Video key={item.id} data={item} size={25} />;
|
|
|
|
default:
|
|
return <></>;
|
|
}
|
|
})}
|
|
</div>
|
|
);
|
|
};
|