Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
1import type { ReactNode } from "react";
2import { Card } from "@/components/Shared/UI";
3import cn from "@/helpers/cn";
4import stopEventPropagation from "@/helpers/stopEventPropagation";
5
6interface WrapperProps {
7 children: ReactNode;
8 className?: string;
9 zeroPadding?: boolean;
10}
11
12const Wrapper = ({
13 children,
14 className = "",
15 zeroPadding = false
16}: WrapperProps) => (
17 <Card
18 className={cn("mt-3 cursor-auto", className, { "p-5": !zeroPadding })}
19 forceRounded
20 onClick={stopEventPropagation}
21 >
22 {children}
23 </Card>
24);
25
26export default Wrapper;