mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Most simple components created
This commit is contained in:
22
lib/component/message/WarningMessageBlock.tsx
Normal file
22
lib/component/message/WarningMessageBlock.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { MessageBlockProps } from "$/types/Message";
|
||||
import clsx from "clsx";
|
||||
import MessageBlock from "./MessageBlock";
|
||||
|
||||
|
||||
export default function WarningMessageBlock(props: MessageBlockProps){
|
||||
const {
|
||||
className,
|
||||
...messageProps
|
||||
} = props;
|
||||
|
||||
|
||||
return (
|
||||
<MessageBlock
|
||||
{...messageProps}
|
||||
className={clsx(
|
||||
className,
|
||||
"bg-yellow-100 text-yellow-600"
|
||||
)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user