16 lines
366 B
TypeScript
16 lines
366 B
TypeScript
|
|
import type { ComponentProps, FC, PropsWithChildren } from 'react'
|
||
|
|
|
||
|
|
type TProperties = PropsWithChildren<ComponentProps<'div'>>
|
||
|
|
|
||
|
|
export const Card: FC<TProperties> = (properties) => {
|
||
|
|
const { children, ...rest } = properties
|
||
|
|
return (
|
||
|
|
<div
|
||
|
|
className="border-[.2px] border-black bg-white p-[30px]"
|
||
|
|
{...rest}
|
||
|
|
>
|
||
|
|
{children}
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|