Skip to content

Instantly share code, notes, and snippets.

@borlaym
Created December 16, 2019 11:07
Show Gist options
  • Save borlaym/1314ecaf8fc3fc0341fc39b30c94e60c to your computer and use it in GitHub Desktop.
Save borlaym/1314ecaf8fc3fc0341fc39b30c94e60c to your computer and use it in GitHub Desktop.
type FiveCardModular = {
name: 'FiveCardModular',
}
type FourCardModular = {
name: 'FourCardModular',
}
type HorizontalList = {
name: 'HorizontalList',
header: TopHeader,
};
///////
type TopHeader = {
type: 'TopHeader',
title: string,
useLogo?: boolean,
links?: Array<{
url: string,
text: string
}>
}
@vtanyi-gmg
Copy link

type Layout = FiveCardModular | FourCardModular | HorizontalList

type FiveCardModular = {
	type: 'FiveCardModular'
}

type FourCardModular = {
	type: 'FourCardModular'
}

type HorizontalList = {
	type: 'HorizontalList',
	header: TopHeader
};

///////

type TopHeader = {
	type: 'TopHeader',
	title: string,
	useLogo: boolean,
	links: Array<{
		url: string,
		text: string
	}>
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment