feat: multi-subs working

This commit is contained in:
2025-06-11 11:54:28 +03:00
parent 2738a8e8bd
commit 3953e550b1
3 changed files with 74 additions and 42 deletions

View File

@@ -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>