interface Props { kind: "server-default" | "yours"; title: string; sectionType: string; hidden: boolean; onHide: () => void; onShow: () => void; onEdit: () => void; onDelete: () => void; } export default function ProfileSectionRow({ kind, title, sectionType, hidden, onHide, onShow, onEdit, onDelete, }: Props) { return (
⋮⋮
{title}
· {sectionType}
{kind === "yours" ? "Yours" : "Server default"} {hidden ? "hidden" : "on"}
{kind === "server-default" ? ( hidden ? ( ) : ( ) ) : ( <> )}
); }