앱 수정
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import React from 'react';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
onBack: () => void;
|
||||
right?: React.ReactNode;
|
||||
}
|
||||
|
||||
export default function MobileStackHeader({ title, subtitle, onBack, right }: Props) {
|
||||
return (
|
||||
<header className="screen-header mobile-stack-header">
|
||||
<button type="button" className="mobile-back-btn" onClick={onBack} aria-label="목록으로">
|
||||
←
|
||||
</button>
|
||||
<div className="mobile-stack-header-titles">
|
||||
<h1 className="screen-title mobile-stack-title">{title}</h1>
|
||||
{subtitle && <p className="text-muted mobile-stack-subtitle">{subtitle}</p>}
|
||||
</div>
|
||||
{right && <div className="mobile-stack-header-right">{right}</div>}
|
||||
</header>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user