import { useState } from "react"; import Modal from "@/components/Modal"; import Icon from "@/components/Icon"; import General from "./General"; import Notifications from "./Notifications"; import Speech from "./Speech"; import Theme from "./Theme"; import Security from "./Security"; import DataControls from "./DataControls"; import { menu } from "./menu"; type Props = { open: boolean; onClose: () => void; }; const Settings = ({ open, onClose }: Props) => { const [activeId, setActiveId] = useState(0); return ( <>
Settings
People with link will be able to view conversations and ideas in this board.Changes you make after creating the link will remain private.
{menu.map((item) => ( ))}
{menu .filter((item) => item.id === activeId) .map((item) => (
{item.name}
))} {activeId === 0 && } {activeId === 1 && } {activeId === 2 && } {activeId === 3 && } {activeId === 4 && } {activeId === 5 && }
); }; export default Settings;