feat: minimal configuration
This commit is contained in:
14
src/components/Block.tsx
Normal file
14
src/components/Block.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { PropsWithChildren } from "react";
|
||||
|
||||
type BlockProps = PropsWithChildren<{ name?: string }>;
|
||||
|
||||
const Block: React.FC<BlockProps> = ({ children, name = "" }) => {
|
||||
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-1.5 shadow-md">
|
||||
{name && <span className="text-semibold text-sm">{name}</span>}
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Block };
|
||||
Reference in New Issue
Block a user