blob: ef45f893c17cdcf6ade67b51d7c6d57af0817202 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import type { ClassValue } from "corvos/deps/clsx.ts";
import type { Props as ImageProps } from "corvos/plugins/images.ts";
import { Image } from "corvos/plugins/images.ts";
export type Props = Omit<ImageProps, "src"> & {
"src"?: string;
"img-class"?: ClassValue;
};
export const ContentImage = ({ src, "img-class": imgClass, ...props }: Props) => (
<a href={src} data-lightbox {...props}>
<Image src={src} width="1400" class:list={imgClass} />
</a>
);
|