14 lines
437 B
TypeScript
14 lines
437 B
TypeScript
import React from "react";
|
|
import { WiredCard as Card } from "wired-elements-react";
|
|
import {CardWrapper} from "./styled";
|
|
|
|
interface IWiredCard {
|
|
elevation?: number;
|
|
}
|
|
const WiredCard: React.FC<IWiredCard> = ({ children, elevation}) => {
|
|
var childrenWithType = (<CardWrapper>{children}</CardWrapper>) as HTMLCollection & React.ReactNode;
|
|
return <Card elevation={elevation}>{childrenWithType}</Card>;
|
|
};
|
|
|
|
export default WiredCard;
|