Skip to content

Commit

Permalink
refactor: extract types for component props (#155)
Browse files Browse the repository at this point in the history
Co-authored-by: Ala <ala.menai@credium.de>
  • Loading branch information
alamenai and Ala authored Dec 19, 2024
1 parent 91a1080 commit 49c4cfc
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions registry/default/magicui/bento-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@ import { ArrowRightIcon } from "@radix-ui/react-icons";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";

const BentoGrid = ({
children,
className,
}: {
type BentoGridProps = {
children: ReactNode;
className?: string;
}) => {
};

type BentoCardProps = {
name: string;
className: string;
background: ReactNode;
Icon: any;
description: string;
href: string;
cta: string;
};

const BentoGrid = ({ children, className }: BentoGridProps) => {
return (
<div
className={cn(
Expand All @@ -31,15 +40,7 @@ const BentoCard = ({
description,
href,
cta,
}: {
name: string;
className: string;
background: ReactNode;
Icon: any;
description: string;
href: string;
cta: string;
}) => (
}: BentoCardProps) => (
<div
key={name}
className={cn(
Expand Down

0 comments on commit 49c4cfc

Please sign in to comment.