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, MediaInfo } from "@/types/general" import { ActionButton } from "@/components/interface/action-button" // modal to report a media or channel export function ReportModal({ media, channel, children, }: { media?: MediaInfo 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:

{media && media.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:

{media && media.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.

) }