chore: Sync package version v2.0.0-beta.1
This commit is contained in:
@@ -4,13 +4,17 @@ import NextImage from "next/image";
|
||||
type Height = ComponentProps<typeof NextImage>["height"];
|
||||
type Width = ComponentProps<typeof NextImage>["width"];
|
||||
|
||||
type ImageProps = Omit<ComponentProps<"img">, "src"> & {
|
||||
src?: ComponentProps<typeof NextImage>["src"];
|
||||
};
|
||||
|
||||
export default function Image({
|
||||
src,
|
||||
alt = "alt",
|
||||
width = 800,
|
||||
height = 350,
|
||||
...props
|
||||
}: ComponentProps<"img">) {
|
||||
}: ImageProps) {
|
||||
if (!src) return null;
|
||||
return (
|
||||
<NextImage
|
||||
|
||||
Reference in New Issue
Block a user