Add: - admin/voting: tambah [id] dan [status] Component Admin Add: - components/_ShareComponent/Admin/ButtonReject - components/_ShareComponent/Admin/ButtonReview ### No Issue
25 lines
520 B
TypeScript
25 lines
520 B
TypeScript
import { IconReject } from "@/components/_Icon/IconComponent";
|
|
import ButtonCustom from "@/components/Button/ButtonCustom";
|
|
import { MainColor } from "@/constants/color-palet";
|
|
|
|
export default function AdminButtonReject({
|
|
title,
|
|
onReject,
|
|
}: {
|
|
title: string;
|
|
onReject: () => void;
|
|
}) {
|
|
return (
|
|
<>
|
|
<ButtonCustom
|
|
iconLeft={<IconReject />}
|
|
backgroundColor={MainColor.red}
|
|
textColor="white"
|
|
onPress={onReject}
|
|
>
|
|
{title}
|
|
</ButtonCustom>
|
|
</>
|
|
);
|
|
}
|