THeader 추가
This commit is contained in:
18
com.twin.app.shoptime/src/components/THeader/THeader.jsx
Normal file
18
com.twin.app.shoptime/src/components/THeader/THeader.jsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
|
||||
import css from "./THeader.module.less";
|
||||
import classNames from "classnames";
|
||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
|
||||
const Container = SpotlightContainerDecorator(
|
||||
{ enterTo: "last-focused" },
|
||||
"div"
|
||||
);
|
||||
|
||||
export default function THeader({ title, className }) {
|
||||
return (
|
||||
<Container className={classNames(css.tHeader, className)}>
|
||||
<div className={css.title}>{title}</div>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user