1 | import { FunctionComponent } from 'react';
|
2 | export declare enum SourceError {
|
3 | NO_STORY = "There\u2019s no story here.",
|
4 | SOURCE_UNAVAILABLE = "Oh no! The source is not available."
|
5 | }
|
6 | interface SourceErrorProps {
|
7 | error?: SourceError;
|
8 | }
|
9 | interface SourceCodeProps {
|
10 | language?: string;
|
11 | code?: string;
|
12 | format?: boolean;
|
13 | dark?: boolean;
|
14 | }
|
15 | export declare type SourceProps = SourceErrorProps & SourceCodeProps;
|
16 |
|
17 |
|
18 |
|
19 | declare const Source: FunctionComponent<SourceProps>;
|
20 | export { Source };
|