import type { MessageBlockProps } from "$/types/MessageTypes";
import clsx from "clsx";


export default function MessageBlock(props: MessageBlockProps){
	const {
		className,
		outline = "sm",
		rounded = "lg",
		...messageProps
	} = props;


	return (
		<div
			{...messageProps}
			className={clsx(
				className,
				"px-4 py-2",
				{
					"border-0": outline === "none",
					"border-1": outline === "sm",
					"border-2": outline === "md",
					"border-3": outline === "lg"
				},
				{
					"rounded-none": rounded === "none",
					"rounded-xs": rounded === "xs",
					"rounded": rounded === "md",
					"rounded-lg": rounded === "lg",
					"rounded-xl": rounded === "xl"
				}
			)}
		/>
	);
}