19 lines
457 B
TypeScript
19 lines
457 B
TypeScript
import { DetailedHTMLProps, HTMLAttributes } from "react";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export default function Main({
|
|
...props
|
|
}: DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>) {
|
|
return (
|
|
<main
|
|
{...props}
|
|
className={twMerge(
|
|
"flex flex-col items-start w-full",
|
|
props.className
|
|
)}
|
|
>
|
|
{props.children}
|
|
</main>
|
|
);
|
|
}
|