import { User } from '@/api-client/ApiClient'; import { Card, Group, Spoiler, Stack, Text } from '@mantine/core'; import { getRelativeTime } from '@/lib/utils/time'; import { LinkAvatar, LinkText } from '@/components/link/MantineLink'; interface Props { id: string; note: string; createdAt: string; author: User; } export default function NoteCard(props: Props) { const time = getRelativeTime(props.createdAt); return ( {props.note} {props.author.name} {' ยท '} {time}{' '} ); }