mirror of https://github.com/sgoudham/carbon.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
416 B
JavaScript
22 lines
416 B
JavaScript
import React from 'react'
|
|
|
|
export default ({ language }) => (
|
|
<div className="language">
|
|
{language.name}
|
|
<style jsx>
|
|
{`
|
|
.language {
|
|
position: absolute;
|
|
top: 7px;
|
|
right: 7px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
font-size: 12px;
|
|
padding: 5px;
|
|
border-radius: 3px;
|
|
z-index: 1;
|
|
}
|
|
`}
|
|
</style>
|
|
</div>
|
|
)
|