diff --git a/src/components/molecules/cardMasonry.tsx b/src/components/molecules/cardMasonry.tsx index d9dc0f791..3f7694ac6 100644 --- a/src/components/molecules/cardMasonry.tsx +++ b/src/components/molecules/cardMasonry.tsx @@ -1,5 +1,5 @@ import clsx from 'clsx'; -import { MasonryProps, RenderComponentProps } from 'masonic'; +import { MasonryProps } from 'masonic'; import React from 'react'; import dynamic from 'next/dynamic'; @@ -12,26 +12,15 @@ const Masonry = dynamic>( } ); -type Props = { - items: T[]; - render: React.ComponentType>; - className?: string; -}; - -export default function CardMasonry({ - className, - items, - render, -}: Props): JSX.Element { +export default function CardMasonry(props: MasonryProps): JSX.Element { return ( > - } - className={clsx(styles.base, className)} - columnGutter={20} - columnWidth={300} + {...{ + columnGutter: 20, + columnWidth: 300, + ...(props as MasonryProps), + className: clsx(styles.base, props.className), + }} /> ); }