21 lines
356 B
TypeScript
21 lines
356 B
TypeScript
import { Href } from "expo-router";
|
|
import BaseBox from "./BaseBox";
|
|
|
|
export default function BoxWithHeaderSection({
|
|
children,
|
|
href,
|
|
onPress,
|
|
}: {
|
|
children: React.ReactNode;
|
|
href?: Href;
|
|
onPress?: () => void;
|
|
}) {
|
|
return (
|
|
<>
|
|
<BaseBox href={href} onPress={onPress} paddingTop={5}>
|
|
{children}
|
|
</BaseBox>
|
|
</>
|
|
);
|
|
}
|