'use client'; import { Image } from './Image'; import { chakra, useColorMode } from '@chakra-ui/system'; import { ComponentProps } from 'react'; type AvatarImageProps = Partial< ComponentProps & { showBorder?: boolean; } >; export function NextAvatar({ src, showBorder, alt = '', style, ...props }: AvatarImageProps) { const { colorMode } = useColorMode(); return ( {alt} ); } export const ChakraNextAvatar = chakra(NextAvatar, { shouldForwardProp: (prop) => ['width', 'height', 'src', 'alt', 'layout'].includes(prop), });