import Button from '@/components/Button'; import { Icon } from '@iconify/react'; interface FormHeaderProps { type: 'add' | 'edit' | 'detail'; title: string; backUrl: string; } export const FormHeader = ({ type, title, backUrl }: FormHeaderProps) => { return (

{type === 'add' && `Tambah ${title}`} {type === 'edit' && `Edit ${title}`} {type === 'detail' && `Detail ${title}`}

); };