UnknownExtInclusion.js 522 Bytes
Newer Older
1
2
3
/**
 * Copyright (c) 2015-present, Facebook, Inc.
 *
Sophie Alpert's avatar
Sophie Alpert committed
4
5
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
6
7
 */

8
9
import React from 'react';
import aFileWithExtUnknown from './assets/aFileWithExt.unknown';
10
11

const text = aFileWithExtUnknown.includes('base64')
12
  ? atob(aFileWithExtUnknown.split('base64,')[1]).trim()
13
  : aFileWithExtUnknown;
14

15
export default () => (
16
17
  <a id="feature-unknown-ext-inclusion" href={text}>
    aFileWithExtUnknown
18
19
  </a>
);