import { Divider, Flex, Text } from '@mantine/core';
import { PropsWithChildren } from 'react'

interface CardInfoProps extends PropsWithChildren {
    label: string;
}

export default function CardInfo({
    children,
    label
}: CardInfoProps) {
    return (
        <Flex direction='column' gap='sm' p='sm'>
            <Text fw={600}>
                {label}
            </Text>

            <Divider />

            {children}
        </Flex>
    )
}