Skip to content

Instantly share code, notes, and snippets.

@reime005
Created December 14, 2020 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/6a35290187f98aeb44334d77fb85c223 to your computer and use it in GitHub Desktop.
Save reime005/6a35290187f98aeb44334d77fb85c223 to your computer and use it in GitHub Desktop.
interface ISettingsData = {
title: string;
icon: JSX.Element;
data: SettingsType[];
};
type SettingsType = 'aboutMe' | 'spaceAPI' | 'help' | 'theme';
const settingsData: ISettingsData[] = [
{
title: 'About',
icon: (
<GiftIcon scale={0.8} />
),
data: ['aboutMe', 'spaceAPI', 'theme'],
},
{
title: 'Feedback and Help',
icon: (
<MailIcon scale={0.8} />
),
data: ['help'],
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment