misskey-tools/src/frontend/components/Card.tsx
2021-09-09 12:58:57 +09:00

17 lines
325 B
TypeScript

import React from 'react';
export type CardProps = {
className?: string;
bodyClassName?: string;
};
export const Card: React.FC<CardProps> = ({children, className, bodyClassName}) => {
return (
<div className={`card ${className}`}>
<div className={`body ${bodyClassName}`}>
{children}
</div>
</div>
);
};