import { memo } from "react";
import { Text, View } from "react-native";
import { Button } from "../../Button";
import { AppIcons } from "../../..";
type ActionType = "notifications";
export type ActionT = {
type: ActionType;
label: string;
onPress: () => void;
showBadge?: boolean;
};
type Props = {
title: string;
actions?: ActionT[];
};
const NotificationsAction = ({ label, onPress, showBadge }: ActionT) => {
return (
);
};
export const PageHeader = memo(({ title, actions }: Props) => {
return (
{title}
{actions?.map((action) => {
switch (action.type) {
case "notifications":
return ;
default:
return null;
}
})}
);
});
PageHeader.displayName = "PageHeader";