import{jsxs as N,jsx as i}from"react/jsx-runtime";import{c as r,B as s}from"./ui-components-B24mpb8o.js";import{Globe as w,Github as g,Twitter as _,Linkedin as v}from"lucide-react";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";const V=({instructor:e,className:f,buttonClass:t,buttonVariant:o="secondary"})=>{const m=(k,l)=>{const a=typeof l.user.social_links=="string"?JSON.parse(l.user.social_links):l.user.social_links,h=a==null?void 0:a.find(u=>u.host===k);return h?h.profile_link:null},n=m("website",e),p=m("github",e),c=m("twitter",e),d=m("linkedin",e);return N("div",{className:r("flex items-center justify-center space-x-1.5 py-4",f),children:[n&&i("a",{href:n,target:"_blank",children:i(s,{size:"icon",variant:o,className:r("rounded-full p-0",t),children:i(w,{className:"h-5 w-5"})})}),p&&i("a",{href:p,target:"_blank",children:i(s,{size:"icon",variant:o,className:r("rounded-full p-0",t),children:i(g,{className:"h-5 w-5"})})}),c&&i("a",{href:c,target:"_blank",children:i(s,{size:"icon",variant:o,className:r("rounded-full p-0",t),children:i(_,{className:"h-5 w-5"})})}),d&&i("a",{href:d,target:"_blank",children:i(s,{size:"icon",variant:o,className:r("rounded-full p-0",t),children:i(v,{className:"h-5 w-5"})})})]})};export{V as default};
