import { Grid, Stack, Title } from "@mantine/core";
import EntryCard from "../components/EntryCard";
import { metricsEntries } from "../config/entries";

export default function Metrics() {
  return (
    <Stack spacing="lg" p="md">
      <Title order={2}>指标入口</Title>
      <Grid gutter="lg">
        {metricsEntries.map((entry) => (
          <Grid.Col key={entry.href} span={{ base: 12, sm: 4, md: 3 }}>
            <EntryCard label={entry.label} href={entry.href} icon={entry.icon} />
          </Grid.Col>
        ))}
      </Grid>
    </Stack>
  );
}
