mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
23 lines
394 B
TypeScript
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>
|
|
);
|
|
};
|