summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/molecules/layout')
-rw-r--r--src/components/molecules/layout/card.tsx22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/components/molecules/layout/card.tsx b/src/components/molecules/layout/card.tsx
index e465f76..68e364a 100644
--- a/src/components/molecules/layout/card.tsx
+++ b/src/components/molecules/layout/card.tsx
@@ -1,5 +1,6 @@
import ButtonLink from '@components/atoms/buttons/button-link';
import Heading, { type HeadingLevel } from '@components/atoms/headings/heading';
+import { type Image } from '@ts/types/app';
import { FC } from 'react';
import ResponsiveImage, {
type ResponsiveImageProps,
@@ -7,25 +8,6 @@ import ResponsiveImage, {
import styles from './card.module.scss';
import Meta, { type MetaData } from './meta';
-export type Cover = {
- /**
- * The cover alternative text.
- */
- alt: string;
- /**
- * The cover height.
- */
- height: number;
- /**
- * The cover source.
- */
- src: string;
- /**
- * The cover width.
- */
- width: number;
-};
-
export type CardProps = {
/**
* Set additional classnames to the card wrapper.
@@ -34,7 +16,7 @@ export type CardProps = {
/**
* The card cover.
*/
- cover?: Cover;
+ cover?: Image;
/**
* The cover fit. Default: cover.
*/