import { ReactNode, useState } from "react" import { LuShieldAlert } from "react-icons/lu" import { Button } from "@/components/ui/button" import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTrigger } from "@/components/ui/dialog" import { ChannelInfo, VideoInfo } from "@/types/general" import { ActionButton } from "@/app/interface/action-button" // modal to report a video or channel export function ReportModal({ video, channel, children, }: { video?: VideoInfo channel?: ChannelInfo children?: ReactNode }) { const [isOpen, setOpen] = useState(false) return ( { if (!open) { setOpen(open) } }}> setOpen(true)}> Report Report an issue with the content

If you believe there is an issue with a content, you can ask the author to remove it, by creating a pull request explaining why:

{video && video.id ? Request author for content removal : null}

Note: it may take some time for the AiTube robot to synchronize and delete the video.

If the content is in violation of our content guidelines, you can flag the channel from the Hugging Face dataset page:

{video && video.id ? Click here to open the dataset : null} {channel && channel.id ? Click here to open the dataset : null}

Finally, if you believe the content violates or infringes your intellectual property rights, you may send your complaint to dmca@huggingface.co with detailed and accurate information supporting your claim, in addition to the possibility of flagging the allegedly infringing Content. You also represent and warrant that you will not knowingly provide misleading information to support your claim.

) }