import { Card, Text, Stack } from "@mantine/core";

export default function NodeMetaCard({ node }) {
  const meta = node.meta_data || {};

  return (
    <Card shadow="sm" radius="md" withBorder>
      <Text fw={600} mb="sm">元数据信息</Text>
      <Stack spacing="xs">
        <Text size="sm">主机: {meta.host}</Text>
        <Text size="sm">IP: {meta.ip}</Text>
        <Text size="sm">区域: {meta.region}</Text>
        <Text size="sm">可用区: {meta.zone}</Text>
      </Stack>
    </Card>
  );
}
