detail 레이아웃 작업 및 indicator추가 TButton BackKey props 추가

This commit is contained in:
고동영
2024-02-15 09:56:18 +09:00
parent a9c3c5a0ea
commit 64a18c7d77
18 changed files with 419 additions and 14 deletions

View File

@@ -1,17 +1,20 @@
import React from "react";
import css from "./THeader.module.less";
import classNames from "classnames";
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
import css from "./THeader.module.less";
const Container = SpotlightContainerDecorator(
{ enterTo: "last-focused" },
"div"
);
export default function THeader({ title, className }) {
export default function THeader({ title, className, onBackButton, onClick }) {
return (
<Container className={classNames(css.tHeader, className)}>
{onBackButton && <button className={css.button} onClick={onClick} />}
<div className={css.title}>{title}</div>
</Container>
);