import type {BlacklistItem} from "~/classes/blacklistItem";
import {List, Dialog, DialogContent, DialogTitle, ListItem, ListItemText, Divider} from "@mui/material";
function NicknameList({nicknames}: {nicknames: string[]|undefined}){
if (!nicknames){
return (<>>)
}
if (nicknames.length > 0){
return (
<>
Nicknames:
{nicknames.map((item) => {
return {item}
})}
>
)
} else {
return (<>>)
}
}
function CommentsList({comments}: {comments: string[]|undefined}){
if (!comments){
return (<>>)
}
if (comments.length > 0){
return (
<>
Comments:
{comments.map((item) => {
return {item}
})}
>
)
} else {
return (<>>)
}
}
function Tag({tag, name}:{tag: number|undefined, name: string}){
let classColor = "report-tag-count-good";
if (tag){
if (tag <= 10){
classColor = "report-tag-count-good";
} else if (tag > 10 && tag <= 25) {
classColor = "report-tag-count-ok";
} else if (tag > 25 && tag <= 50) {
classColor = "report-tag-count-bad";
} else {
classColor = "report-tag-count-very-bad";
}
}
return (
<>
{tag}
{name}
>
)
}
function TagList({afk, cheater, griefer, toxic, useless, smurf}:{afk: number|undefined, cheater: number|undefined, griefer: number|undefined, toxic: number|undefined, useless: number|undefined, smurf: number|undefined}){
return (
<>
>
)
}
export default function ItemDialog({ blacklistItem, open, handleClose }: { blacklistItem: BlacklistItem|null, open: boolean, handleClose: Function }){
return (
)
}