import React, { useState } from "react"; import CardTrelloDesign from "./CardTrelloDesign"; import ProcessCard from "./ProcessCard"; function CardDesgin() { const list = { 1: , 2: , }; const [type, setType] = useState(1); return (
{list[type]}
); } export default CardDesgin;