Let Storybook stories fetch theme

This commit is contained in:
Evan Hahn 2021-10-27 14:49:58 -05:00 committed by GitHub
parent 33090b5cbd
commit ce35c870d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 33 deletions

View file

@ -0,0 +1,7 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { createContext } from 'react';
import { ThemeType } from '../ts/types/Util';
export const StorybookThemeContext = createContext(ThemeType.light);