feat(person/collection): collection

This commit is contained in:
2026-02-05 10:57:26 +08:00
parent ee47aed128
commit 885bf210c3
19 changed files with 2616 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
"use client"
import { ProjectDetail } from "@/components/label/api/project/typing"
import { List, Paper, Stack, Text } from "@mantine/core"
export default function NoteRulesTable(props: {
info: ProjectDetail.DataProps | undefined
}) {
const rules = props.info?.comment_rule
const textRules = rules?.text_rules ?? []
const checkBoxRules = rules?.check_box_rules ?? []
return (
<Paper withBorder p="sm" radius="md" style={{ borderColor: "rgba(0,0,0,0.06)" }}>
<Stack gap="xs">
<Text fw={700}></Text>
<Stack gap={4}>
<Text size="sm" fw={600}>
</Text>
{textRules.length ? (
<List size="sm" spacing={4}>
{textRules.map((r, idx) => (
<List.Item key={idx}>{r}</List.Item>
))}
</List>
) : (
<Text size="sm" c="dimmed">
-
</Text>
)}
</Stack>
<Stack gap={4}>
<Text size="sm" fw={600}>
</Text>
{checkBoxRules.length ? (
<List size="sm" spacing={4}>
{checkBoxRules.map((r, idx) => (
<List.Item key={idx}>{String(r)}</List.Item>
))}
</List>
) : (
<Text size="sm" c="dimmed">
-
</Text>
)}
</Stack>
</Stack>
</Paper>
)
}