NoExtInclusion.js 492 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 aFileWithoutExt from './assets/aFileWithoutExt';
10
11

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

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