import React from "react"; import { useDispatch } from "react-redux"; import { ApplicationActions } from "@com.mgmtp.a12.client/client-core/lib/core/application"; import Declaration from "./Declaration"; import Card from "./Card"; const cards = [ { title: "Grundvermögen", imgSrc: "/images/village.jpeg", descriptor: { menuitem: "GrSt_Overview_HeteroModule" }, }, { title: "Land- und forstwirtschaftliches Vermögen", imgSrc: "/images/land.jpeg", descriptor: { model: "LuF_D" }, }, { title: "Kleingarten- und Dauerkleingartenland", imgSrc: "/images/garden.jpeg", descriptor: { model: "Kleingarten_D" }, }, ]; export default function WelcomePage() { const dispatch = useDispatch(); return (

Bitte wählen Sie das zu bewertende Vermögen aus:

{cards.map(({ title, imgSrc, descriptor }) => (
{ dispatch( ApplicationActions.startMainActivityRequested(descriptor) ); }} />
))}
); }