GuideImage.tsx 514 B

1234567891011121314151617
  1. import ResponsiveImage from '@/components/ResponsiveImage';
  2. import clsx from 'clsx';
  3. export default function GuideImage({ src, width, height, description, float }) {
  4. return (
  5. <figure className={clsx('guide-image', { [`guide-image-${float}`]: float })}>
  6. <ResponsiveImage
  7. src={src}
  8. width={width}
  9. height={height}
  10. alt={description}
  11. className="rounded bg-white shadow-card"
  12. />
  13. {description && <figcaption>{description}</figcaption>}
  14. </figure>
  15. );
  16. }