Files
website-astro-stefanimhoff.de/src/components/ProjectIntro.tsx
2023-05-17 20:49:49 +02:00

23 lines
394 B
TypeScript

import cx from 'classnames';
import type { ComponentChild, FunctionalComponent } from 'preact';
interface Props {
class?: string;
children: ComponentChild;
}
export const ProjectIntro: FunctionalComponent<Props> = ({
class: className,
children,
...props
}) => {
const classes = cx('max-w-[66ch]', className);
return (
<div class={classes} {...props}>
{children}
</div>
);
};