'use client';
import IconButton from './IconButton';

interface Props {
    onClick: () => void;
    label: string;
}

export default function CollabBackButton({ onClick, label }: Props) {
    return (
        <IconButton
            icon={
                <svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
                    <path strokeLinecap="round" strokeLinejoin="round" d="M15 19l-7-7 7-7" />
                </svg>
            }
            label={label}
            onClick={onClick}
            variant="default"
            size="md"
        />
    );
}
