Skip to content

Commit

Permalink
feat: Added new Image component
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-crowell committed Jun 18, 2024
1 parent 9f9ef37 commit 067a5cc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/ui/src/components/Image/Image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use client';

import React from 'react';
import { DoobUiContext } from '@do-ob/ui/context';
import { Image as NextUIImage, ImageProps } from '@nextui-org/react';

export function Image(props: ImageProps) {

const { image } = React.useContext(DoobUiContext);

return (
<NextUIImage
as={image}
{...props}
/>
);
}

0 comments on commit 067a5cc

Please sign in to comment.