-
This section is under construction.
-
-
-
-
categories
- {cats.map((category) => (
-
-
- setCats(
- cats.map((y) =>
- y.id === category.id
- ? {
- ...y,
- title: e.currentTarget.value,
- }
- : y,
- ),
- )
- }
- contrast
- />
-
-
- ))}
-
create new
-
- setName(e.currentTarget.value)}
- contrast
- />
-
-
-
channels
- {channels.map((channel) => {
- return (
-
-
- {" "}
- {channel!.name}
-
-
- x.channels.includes(channel!._id),
- )?.id ?? "none"
- }
- onChange={(e) =>
- setCats(
- cats.map((x) => {
- return {
- ...x,
- channels: [
- ...x.channels.filter(
- (y) => y !== channel!._id,
- ),
- ...(e.currentTarget.value ===
- x.id
- ? [channel!._id]
- : []),
- ],
- };
- }),
- )
- }>
-
- {cats.map((x) => (
-
- ))}
-
-
- );
- })}
-
+ <>
+