schlechtenburg/src/components/user/Image/util.ts

16 lines
270 B
TypeScript
Raw Normal View History

2020-05-24 20:52:33 +00:00
import { BlockProps } from '@components/TreeElement';
export interface ImageData {
src: string;
alt: string;
}
export interface ImageProps extends BlockProps {
data: ImageData;
}
export const getDefaultData: () => ImageData = () => ({
src: '',
alt: '',
});