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" 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 video

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

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

If the prompt 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.

) }