@age/quantum
Version:
Catho react components
19 lines (15 loc) • 399 B
TypeScript
import React from 'react';
export type NonEmptyArray<T> = [T, ...T[]];
export interface SocialsProps {
size?: string;
theme?: {
spacing?: object;
};
items: NonEmptyArray<{
name?: 'facebook' | 'twitter' | 'youtube';
url?: string;
title?: string;
}>;
withBox?: boolean;
}
export default class Socials extends React.Component<SocialsProps> {}