Yang Sudah Di Kerjakan * Tampilan UI Admin di menu inovasi * API Create, edit dan delete potensi Yang Lagi Dikerjakan: * Progress Tampilan UI Admin Di Menu lingkungan * Progress API Create, edit dan delete potensi Yang Akan Dikerjakan: * API Create, edit dan delete pengumuman * Tampilan UI Admin Di Menu Pendidikan
31 lines
795 B
TypeScript
31 lines
795 B
TypeScript
|
|
'use client'
|
|
import colors from '@/con/colors';
|
|
import { Grid, GridCol, Button, Text } from '@mantine/core';
|
|
import { IconCircleDashedPlus } from '@tabler/icons-react';
|
|
import { useRouter } from 'next/navigation';
|
|
import React from 'react';
|
|
|
|
const JudulList = ({ title = "", href = "#" }) => {
|
|
const router = useRouter();
|
|
|
|
const handleNavigate = () => {
|
|
router.push(href);
|
|
};
|
|
|
|
return (
|
|
<Grid align="center" mb={10}>
|
|
<GridCol span={{ base: 12, md: 11 }}>
|
|
<Text fz={"xl"} fw={"bold"}>{title}</Text>
|
|
</GridCol>
|
|
<GridCol span={{ base: 12, md: 1 }} ta="right">
|
|
<Button onClick={handleNavigate} bg={colors['blue-button']}>
|
|
<IconCircleDashedPlus size={25} />
|
|
</Button>
|
|
</GridCol>
|
|
</Grid>
|
|
);
|
|
};
|
|
|
|
export default JudulList;
|