import { Button } from "antd"; import { NLView } from "../types"; import { useAppState } from "../overmind"; import { useState } from "react"; export const WhitelistPreview: NLView<{ setActiveTags: React.Dispatch>; activeTags: string[]; user: any; }> = ({ setActiveTags, activeTags, user }) => { const [activeButton, setActiveButton] = useState(false); const state = useAppState(); const items = state.lists.search.posts.results?.value || []; const buttonClassName = activeButton ? "primary-green-btn" : "secondary-button"; return (
); };