signal-desktop/ts/components/IdenticonSVG.stories.tsx

28 lines
567 B
TypeScript
Raw Normal View History

2021-08-25 00:17:51 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { IdenticonSVG } from './IdenticonSVG';
import { AvatarColorMap } from '../types/Colors';
2022-06-07 00:48:02 +00:00
export default {
title: 'Components/IdenticonSVG',
};
export const AllColors = (): JSX.Element => {
const stories: Array<JSX.Element> = [];
AvatarColorMap.forEach(value =>
stories.push(
<IdenticonSVG
backgroundColor={value.bg}
content="HI"
foregroundColor={value.fg}
/>
)
);
2021-08-25 00:17:51 +00:00
2022-06-07 00:48:02 +00:00
return <>{stories}</>;
};