Files
universal_is/client/src/components/CardInfo/CardInfo.tsx
2024-11-15 17:00:23 +09:00

23 lines
456 B
TypeScript

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>
)
}