4a2d5a1b49
Co-authored-by: Tim Neutkens <tim@timneutkens.nl> Co-authored-by: Tim Neutkens <timneutkens@me.com>
22 lines
No EOL
976 B
JavaScript
22 lines
No EOL
976 B
JavaScript
import _JSXStyle from "styled-jsx/style";
|
|
export default (({ level =1 })=>{
|
|
const Element = `h${level}`;
|
|
return <Element className={"jsx-fca64cc3f069b519" + " " + "root"}>
|
|
<p className={"jsx-fca64cc3f069b519"}>dynamic element</p>
|
|
<_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519 {background:red}"}</_JSXStyle>
|
|
</Element>;
|
|
});
|
|
export const TestLowerCase = ({ level =1 })=>{
|
|
const element = `h${level}`;
|
|
return <element className={"jsx-fca64cc3f069b519" + " " + "root"}>
|
|
<p className={"jsx-fca64cc3f069b519"}>dynamic element</p>
|
|
<_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519 {background:red}"}</_JSXStyle>
|
|
</element>;
|
|
};
|
|
const Element2 = "div";
|
|
export const Test2 = ()=>{
|
|
return <Element2 className="root">
|
|
<p className={"jsx-fca64cc3f069b519"}>dynamic element</p>
|
|
<_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519 {background:red}"}</_JSXStyle>
|
|
</Element2>;
|
|
}; |