feat: multi-subs working
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
import { cn } from "@/utils/cn";
|
||||
import { PropsWithChildren } from "react";
|
||||
|
||||
type BlockProps = PropsWithChildren<{ name?: string }>;
|
||||
type BlockProps = PropsWithChildren<{ name?: string; className?: string }>;
|
||||
|
||||
const Block: React.FC<BlockProps> = ({ children, name = "" }) => {
|
||||
const Block: React.FC<BlockProps> = ({ children, name = "", className = "" }) => {
|
||||
return (
|
||||
<div className="flex h-fit w-full flex-col items-center gap-2.5 rounded-lg bg-[var(--tg-theme-section-bg-color)] py-2.5 shadow-md">
|
||||
<div
|
||||
className={cn(
|
||||
"flex h-fit w-full flex-col items-center gap-2.5 rounded-lg bg-[var(--tg-theme-section-bg-color)] py-2.5 shadow-md",
|
||||
className
|
||||
)}
|
||||
>
|
||||
{name && <span className="text-semibold text-lg">{name}</span>}
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user