You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Button } from "@/components/ui/button";
import Image from "next/image";
import Link from "next/link";
import React, { useState } from "react";
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
import { Button } from "@/components/ui/button";
import Image from "next/image";
import Link from "next/link";
import React, { useState } from "react";
interface dataLink {
name: string;
url: string;
}
export interface NavbarRootProps {
children?: React.ReactNode;
logo?: string;
sizeLogo?: number;
data: dataLink[];
className?: string;
styleLogo?: string;
}
export const NavbarRoot = ({
children,
data,
logo,
styleLogo,
className,
sizeLogo,
}: NavbarRootProps) => {
const [kontrol, setKontrol] = useState(false);
return (
<div
className={
w-full text-neutral-200 py-4 flex justify-center items-center h-auto bg-opacity-40 ${className}
}>{logo && (
<Image
src={
${logo}
}alt='logo'
width={sizeLogo}
height={sizeLogo}
className={
${styleLogo}
}/>
)}
CrotLink
<Button
onClick={() => {
setKontrol(!kontrol);
}}>
Klik
{kontrol &&
{data.map((item, index) => {
return (
{item.name}
);
})}
);
};
Beta Was this translation helpful? Give feedback.
All reactions