π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
'use client';
import { FC } from 'react';
import { ImageProps } from 'next/image';
type SafeImageProps = Omit<ImageProps, 'src'> & {
src: string;
};
const SafeImage: FC<SafeImageProps> = ({
src,
alt,
width,
height,
className,
style,
...rest
}) => {
return (
<img
src={src}
alt={alt?.toString() || ''}
width={typeof width === 'number' ? width : undefined}
height={typeof height === 'number' ? height : undefined}
className={className}
style={style}
/>
);
};
export default SafeImage;