Commit 7572c8b2 authored by Chunchi Che's avatar Chunchi Che

add Block.tsx

parent d0c4d339
Pipeline #21425 failed with stages
in 2 minutes and 7 seconds
import "@/styles/mat.css";
import classnames from "classnames";
import React from "react";
export const Block: React.FC<{
isExtra?: boolean;
highlight?: boolean;
}> = ({ isExtra = false, highlight = false }) => (
<div
className={classnames("block", {
"block-extra": isExtra,
})}
style={
{
"--highlight-on": highlight ? 1 : 0,
} as any
}
/>
);
export * from "./Block";
export * from "./Card";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment