security-checklist/components/Card/index.js

18 lines
326 B
JavaScript
Raw Normal View History

// @flow
import * as React from 'react';
import { StyledCard } from './style';
type Props = {
children: React.Node,
style?: Object,
};
export default function Card(props: Props) {
2019-01-13 07:00:23 +00:00
const { style, children, ...rest } = props;
return (
<StyledCard {...rest} style={style}>
{children}
</StyledCard>
);
}